I have a large model which basically imports data into a sheet, pastses extra columns with formulas into the data sheet, refreshes some pivot tables based on all the data in the data sheet and then refreshes a report with the data from both the data sheet and the pivots.
My problem is that the model is incredibly unstable. It will usually only let me run the process about 1 or 2 times before causing Excel to have a severe error, and crash. That xls will then become corrupted, and then not work again. However, if I restore a backup version, it will always run fine again, regardless of the data, 1 or 2 times.
In the past, it seems like the error may be tied to using either:
Sheets.add
or
Sheets.delete
though I think this is a syptom, rather than the problem. VBA will actually just not perform these commands when the sheet is corrupted.
Gosh, the workbook I'm copying the graphs from is only 4 mb in size but after I copy and paste those graphs to another workbook (empty one) it became 122mb in size
Does any of you know why this has happened and how to copy the original size graphs to new workbook?
My Userform with combobox entries for product checks against the rowsource and if not on the list, is added to the list. the list is a named range in a Table that is used in a data model.
No matter which way I try I am regularly getting a corruption in the table that is home to the named range which is the rowsource... after one or two entries from the userform.
The rowsource is not bound to the worksheet, it is populated at userform_initialize procedure. (There are 4 combobox drawing from same rouwsource hence the loop through to check each)
debug points to the line at which conbobox value is being entered into the rowsource, though not always - it sometimes just crashes the whole file and everything needs restarting, upon which the table is fine and entry is evident.
I have tried resize, addrow to bottom of table variations and all result in the same core problem of a table corruption that crashes the file.
We are in the process of switching from running Excel 2007 under Windows XP to running Excel 2010 under Windows 7. Most of my Excel reports are not having any issues. However, I have several macros that cause Excel to crash when they go to save the file. Through trial & error, I have found that the problem seems to occur after deleting custom lists that were created earlier in the macro. Here's the pertinent code:
' Declare Variables Dim VarListNum1 Dim VarListNum2 Dim VarListNum3
[Code]....
When I execute the macro line-by-line, it is creating & deleting the custom lists as expected. However, if I try to save the file after any of the custom lists have been created, Excel crashes. Has something changed in Excel 2010?
I am having a problem with a workbook, I have copied all cells and pasted Special (Values only). But for some reason the workbook is 38 Meg's. The workbook only contains 6 worksheets with about 60 rows and 32 columns with figures and no formulas. I have tried to find formulas by Goto/Special/Formulas and Excel has found nothing. What shoud I do?
I am looking to create a summary page to show open items within a log of initiatives. The workbook has 21 different tabs logging initiatives by the each individual person and also 9 other data tabs. On the tabs containing the initiative logs, it states whether the initiative is open or closed and I only want the summary tab to show the open items. Is it possible to do this?
I'm having a little bit of trouble with my code. I basically need to copy-paste special a large workbook (50 worksheets) into a new range-valued workbook. I've defined Sheet as S, but in some instances when I use the variable "S" I received a runtime error 1004.
Please see the highlighted red "S" in the code below.
Also, if one knew of an easier method for this particular operation that would be great!
Sub PasteSpecial()
Dim W As Workbook Dim S1 As Worksheet Dim S As Sheets
I'm writing an application in Excel, its a little over 5MB after I've run through UsedRegion and trimmed stuff, 94 worksheets. I'm encountering a fair number of crashes these days. My OS is fully patched as is MS Office. Running Windows server 2003 and Excel 2007.
I was wondering about the pros and cons of writing an application in one large workbook or many smaller ones. So far its been one large one but these crashes are really impeding my progress.
What's the best way to remedy these crashes or even start to diagnose?
I have a sheet with 200 sheets in called workbook x , I need to create a summary new workbook with only data on 1 sheet.
I want to pull specific cells from the large workbook x to 1 single sheet on a summary workbook:
A6 I want to be surname taken from B1 of workbook x B6 will be first name taken from C1 of workbook x Then I will copy data from M1 on mastersheet to cell C6 on new workbook Then I want to copy Row A11 up to T11 and paste on the new workbook (Summary) in D6 staying in the row 6 Not sure if this is the tricky bit I want to repeat as above B11 to T11 but paste in the next empty cell of the same row of D in my summary I need to repeat this action upto A23 to T23
Then I need it to move on to the next sheet in X and repeat all the steps above but do it on the next row down row 7 and so on
I have 5 sheets all with different data within the H column. I want to find the top 10 highest results across all 5 sheets and then pull the worksheet name where those results come from. It would be two separate formulas, one for the LARGE value and the second for the name.
This is all I have.
O2:O11 =LARGE(Sheet1:Sheet5!$H$3:$H$102,1) to =LARGE(Sheet1:Sheet5!$H$3:$H$102,10)
I then have this which was the best I could find after about 30 different formulas. =MATCH(TRUE,COUNTIF(INDIRECT("'"&{"Sheet1","Sheet2","Sheet3","Sheet4","Sheet5"}&"'!$H$3:$H$102"),O2)>0,0) It gives me the right worksheet but it only gives me a number. I'm assuming it's because of COUNTIF but I'm not sure what else to use.
Most examples I see have the names they want right beside the values. So in my case H3 is 22 (and the largest value within H across all sheets) and if I followed their examples G3 would be Sheet1. So because it's side by side it'd be easily pulled. But the only name references I have are the worksheet name itself or A1 of Sheet1:Sheet5 so I'm not sure how to rework their formulas to suit mine.
I need to create a "Top 5" list based on two columns. The example is as attached (the real list is approx 22 000 lines):
I need to find the top 5 largest quantites (column A) for each flag catagory (column D) and include the part number and description. I have tried a pivot table and had some issues. Also tried a LARGE(IF...) type formula and still no luck. Does anyone have any ideas of what is the best way to do this?
I'm trying to create a mini-table that will give me the 3 highest and lowest values in a range (I know how to do this using LARGE and SMALL functions), but I also want to get the corresponding name (in column A) for each number. This last part I don't know how to do.
I've attached an example sheet that I hope gives a basic idea of what I'm trying to do. I'm looking for a method to fill in the data for cells A13:A15 and C13:C15 in the attached sheet.
I could modify my worksheet a bit and probably get the result I'm looking for, but I'm hoping to come up with a nicer solution, and hopefully learn Excel a bit better in the process.
I don't know if this is possible but thought i'd check. Could I put together a look up that pulls through the 5 best performing categories' so say i have 200 categories, just to pull on to a report page the top 5 and their result, and produce a report weekly so if the top 5 change it updates this?
I was doing this task using sorting then adding column today morning one of my friend told i can do it with formula only, no need to using sort and adding new column
I have a set of 5,800+ data points between 0 and 1 that I would like to multiply together. When I use PRODUCT for the whole set, the formula returns 0. However, I can use a smaller subset of the data to return a very small number. I'm curious if Excel has a closest-number-to-0 or number-of-cells-for-PRODUCT limitation. Is there another way to perform this calculation?
Say I wanted to concatenate a row that had 10,000 values in it. How could this be achieved without having to click 10,000 cells while typing a comma in between each one?
If I have the numbers 1-50 repeating in columns, 1-50, 1-50 etc is there a way to determine that number "1" falls 1st, 51st etc in the sequence without doing a manual count? Or that the number 2 falls 2nd, 52nd etc?
i have this formula below which works but if the criteria is not there it says FALSE because of the B22:C45,2,0) bit i would rather it says something like "no dissertation" is that possible? ...
I have a column of numbers in A1:A200 that I need to concatenate with a ";" in between each into one cell. Is there a way to do this without clicking in each cell individually? =concatenate(A1:A200) just returns the value in cell a1.
I'm having a difficulty using LARGE and SMALL.I want to return the 1st to 5th value of an array (each in a different row) choosing months as criteria. While the LARGE formula works fine, when I replace the LARGE() formula for the SMALL() leaving everything else unchanged, the formula returns ZERO and there are no ZEROS in the original data! Here is the function:
my colleague did something to one of our files and it is now 845918 kb. I transferred it to a flash drive and then to my hard drive but now I cant open it to see what is wrong. Is there a trick to opening this up? When it was opened on her computer it wouldn't let me add any tabs or move tabs. I think I unprotected it but that didn't change anything.
I have a list of domains (about 200,000) that looks like this:
I have a list of urls (about 1 million) that looks like this:
I want my results to only show this (since this is the only thing in the second file that does not contain anything from the first file):
I have tried programs designed to do this but they either (a) shorten everything down to the domain or (b) wont remove anything since the domains are part of a longer url in the second file.
I am using following event macro and it repeats itself more than 300 times. I am at a stage where I am getting a message "Compile Error, Procedure too large", I tried to break it into two but that's not working.
Option Explicit Option Compare Text Private Sub Worksheet_Change(ByVal Target As Range) Dim cl As Range Dim lng As Long Application.EnableEvents = False
Select Case Target.Address Case "$E$3" If Target.Value = "Yes" Then SelectNumber: lng = Application.InputBox("Please enter number 0 to 100", , , , , , , 1) If IsNumeric(lng) = False Or lng < 0 Or lng > 100 Then GoTo SelectNumber Range("G3") = lng Else: Range("G3") = 0
.................................................(above statements repeat more than 300 times for different cells).............................. Application.EnableEvents = True End Sub
I'm using Excel 2007 and the sheet has 238536 rows containing 26412 ranges. The first 5 rows in each range contains data. I wish to input into the sixth cell of every range a formula. Not essential but I'd prefer it to be formatted blue. I attach short s/s to illustrate my need.
I am building a database in excel where I have the number of days across the top (horizontal) and in Cell A2:A300 I list our product lines (that is repeated based on different divisions). Beside each product line in row b3:iv3 I have sales data for each working day.
In a new tab I want to formulate the total of ProductA on day 240.
A B C D E F G H 1 Region Product 235 236 237 238 239 240 2 RegionA ProductA 25 31 15 18 10 5 3 RegionB ProductA 21 13 10 5 28 10 4 RegionB ProductB 21 13 10 5 28 10 5 RegionC ProductB 21 13 10 5 28 10 6 RegionA ProductA 25 31 15 18 10 5 7 RegionA ProductC 25 31 15 18 10 5
In another Tab summary of Product Totals:
Day235 Day236 Day237 Product A 76 75 40 Product B 42 26 20 Product C 25 31 15
I tried many formulas for example: =SUMIF('2012 Sales'!$C$3:$IS$113,$C1&$F$4)
I have a list of IDs that recurs over a time period. It consists of a Start Data an ID Number. These IDs recur over and over again through one month with different start dates.
See Below:
Date ID 12/1/2013 10:00:00 AM 67890 12/6/2013 12:00:30 PM 67890 12/18/2013 06:30:05 AM 67890
From Another List I'd like to pull a max enddate that is within 24 hrs of the start date. There will be multiple end dates. Here is what the other list would look like.
End Date ID 12/1/2013 1:00:30PM 67890 12/6/2013 4:00:45PM 67890 12/18/2013 9:30:00 AM 67890
Seems like using vlookup with the ID as the lookup wouldnt work because it would just pull the first date it found over and over again.