Vlookup Slowing Down Workbook
Jun 28, 2007
I would like to make a file that can calculate the quantity that need for the bakery shop, it's just my example. The customers can order the number of layers of the cake and that is related to the quantity from the table. I would like to looking for the 3 ingredients and the quantity in grams, and afterwards create a pivot table to sum by each type of the ingredients. The orders is about 3000 rows and ingredients are about 20 columns, If I use IF() and Vlookup() or put in Array formula, my program will be very very slow. Can I use others function to get the ingredients and the quantities? I have attached the file belows.
Please also make some suggestion, or something to read more, about the way I use the funtion like I use IF()+IF() or IF()&IF() instead of IF(,,IF). Does it make any different?
View 9 Replies
ADVERTISEMENT
Dec 18, 2006
I want to run through a loop to make it look as if my graph is animated. But the loop is too fast.
How can I slow down the loop to 1/10 of a second per calculation?
View 9 Replies
View Related
Jan 18, 2010
If the below formula is activated - e.g. something is put into cell f8 or g8, the I get the word calculate in the bottom left hand size of the s/sheet.
View 4 Replies
View Related
Feb 18, 2008
I have a spreadsheet that has 1800 sumproduct formulas in it. Foe each day of the year it counts or sums 5 things. Each of these things has 2-3 criteria that is why I used sumproduct. The database it counts from is on the same sheet. It takes to long for the sheet to calculate. Is there a better way. I am using Excel 2003. The sheet itself is not huge 913 kb.
View 9 Replies
View Related
Aug 21, 2013
I have 2 sheets in a workbook
My VBA code gets data from a cell in sheet1 Then it paste that into a cell on sheet2 sheet 2 processes some data and produces a single cell result based on the pasted data Then that single cell result is pasted back into sheet1
Here is the problem. Sheet 2 takes a up to one second to produce the final result because it has to fetch some data from the web My code is pasting data back to sheet1 before sheet2 has had time to produce a final result
How can I make sure the data is finished on sheet2 before my code paste the result back to sheet1?
The variable MacdBlack is the being pasted back to sheet1 before sheet2 has had time to update it This is because sheet2 has to get data from the web which is slow
VB:
Sub SheetTest()
Dim x As Integer
Dim StartCell1 As String
[Code]....
View 6 Replies
View Related
Sep 25, 2009
My spreadsheet has a sheet1 with 1000 rows and needs four columns with "sumproduct" formulas referencing sheet2 with 20000 rows. An example of the formula is:
=SUMPRODUCT(--(Sheet2!$F$2:$F$20000=$B3),--(Sheet2$A$2:$A$20000 >=$J$2))
Once I add them, the recalculation slows it to a crawl. In trying to understand the problem, I do a Manual/Automatic between running a sort. The recalculation still takes too long to be practical.
View 9 Replies
View Related
Feb 22, 2008
I am doing a report which analyzes a specific person's transaction per country (3 criterias). The workbook has 3 sheets. First sheet is the database, 2nd is the report itself and 3rd is a reference table. I am using a sumproduct formula to count per person's transaction per country. It is giving me slow calculations.
I cannot possibly use a pivot table since there will still be other calculations involved after determining the transactions. I tried using database functions but i can't seem to understand how to go about it when there are multiple criterias involved.
I am attaching a sample file for your reference.
View 6 Replies
View Related
Jan 22, 2009
I have had a workbook that I have been using to track inventory. I use a userform to enter the data for inventory in and out of the system. I recently added two more worksheets to the workbook, each of which has several SUMPRODUCT formulas on them that reference the inventory data.
Since adding these two sheets, when entering data via the userform, it takes a long time (relatively speaking) for the sheet to update with the relevant new data. I have attached a copy of the file, in hopes that someone can show me exactly what is causing the slow-down, and if there is a way that I can get the same results using different programming or formulas that will not be so slow.
The part that is slow is on the "Data" sheet. Click on the green or orange buttons to open the userform. Make a selection in each section, and enter an amount. Clicking on "Enter" will transfer the appropriate information to the worksheet. This is the part that is slow.
View 4 Replies
View Related
Aug 10, 2014
I would like to add a "subroutine" to my macro to show the numbers it is picking. But I am having a problem figuring out how to do this.. Here is my macro...
Sub generatelottery2()
Const l& = 1 'lower value
Const u& = 49 'upper value
Const n& = 6 'number of numbers per draw
[Code]....
View 3 Replies
View Related
Dec 28, 2009
I have the following formula in a cell:
=SUM(OFFSET(INDEX(J:J,MATCH(9.99999999999999E+307,J:J)),0,0,-M9))/M9
When the workbook with this formula is open it slows down other workbooks quite a bit.
If I run code in another workbook without the workbook with the formula open, calculation takes 0.099 seconds. If the workbook with the formula is open, the same code takes 2.24 seconds.
How could I change/replace above formula to average the last n (cell M9 value) cells in an ever changing column.
View 9 Replies
View Related
Feb 9, 2013
what VBA is required to have a combo box in a userform look up data in a different workbook, then populate that data into the drop down list of that combo box for a user to select.
I have managed to successfully create a vlookup for a combo box in a userform that looks up data in a named range in another worksheet within the same workbook and then populate that data into a field in a worksheet within the same workbook. However, I want to change this so the combo box on a userform (in one workbook) will look up data from a named range in a second workbook without opening the second workbook. At the moment, the code I have that will 'submit' the user selected data from the combo box drop down list works.
The code that has worked so far to vlookup data for the combo box from a worksheet within the same workbook is:
Code:
Private Sub UserForm_Initialize()
Dim pName As Range
Dim ws As WorksheetSet ws = Worksheets("vlookupsheet")
For Each pName In ws.Range("ProjectName")
With Me.cboProjectName
.AddItem pName.Value
End WithNext pName
Me.cboProjectName.SetFocus
End Sub
Do I need specify the file path of the second workbook that will contain the data for the combo box as well as the name of the worksheet and named range in that second workbook?
View 4 Replies
View Related
Apr 11, 2002
I am trying to use vlookup within the same workbook (different worksheet) and i get nothing, what i am doing:
=VLOOKUP(c2,'filename'!'cellname'3)
View 7 Replies
View Related
Apr 26, 2013
I have a problem to use vlookup in excel. I have an excel to run macro and other than i have two excel. One of them is list just a column which includes SAPkeys of people it looks like
SAP Key
xxxx
yyyy
xxxx
and i have another excel which i use as database. in this database sap keys of all people are written in "C" column. and there are other information about that person is written in "D", "E" and "F" columns.
what i want is bringing all information belong to sap key is written in different sheet. it would be like that after the macro run
SAP Key Name Location
xxx john london
yyy
zzzz hanks berlin
View 6 Replies
View Related
Apr 22, 2009
I have another query now, similar to the one above. This relates to our Purchase invoice board.
All of our invoices are internally numbered, the info is entered onto the attached spreadsheet. A register, source of all Purchase information. (this sheet was not created by me by the way, its really old and my manager does not want to change it )
I would like to create a spreadsheet of the invoices that i have placed under query, i have set out a simple template at the moment which i use. But i have to input all the info from the invoice on this sheet, I can't help but wonder if the vlookup functon would work on for this.
I would like to enter our internal invoice no into my query spreadsheet and with the vlookup function i would like to retrieve the info from our purchase invoice spreadsheet
Only thing is, our invoice num are continously rolling throughout the year. New numbers are not created for the month, it continues from the last invoice number. However our invoices are filed on a monthly basis (hence the month tabs below).
Is there a way that a lookup function can be retrieve info from several worksheets at the same time in a different workbook?
View 11 Replies
View Related
Jul 4, 2008
On a workbook named "Main Book" I have my whole inventory list on this sheet.
totaling over 200,000 items with 4 colums per row
Material # - Description - Family # - Price
(seeing how there is only 65,536 rows I have this list across over 20 colums)
So what I want is to have a VLOOKUP referncing this workbook
example:
material # / description / price
H047071504 / plate 1" mt box / $650.29
H152369500 / burst disk 5000psi / $45.65
manual enter / auto fill / auto fill
In a different Workbook when I type the "Material #" I want the next column to automatically fill in with the information (Description/Price) referenced from "Main Book"
View 9 Replies
View Related
Apr 28, 2009
I am trying to create a vlookup that will use data in another workbook. The workbook that should be used will change based on a cell in my current workbook (cell A2). So in cell A2 it will have Plan1, Plan2, etc.
This is what my formula looks like right now.
=VLOOKUP(A3,Plan1.xlsx!old, 4,FALSE)
Is there a way to make the table_array a formula so it will take cell A2 and string it together with .xlsx!old?
View 9 Replies
View Related
Dec 19, 2013
I have the following formula that works. However, I would like to automatically change a portion of it depending on the cell value. Let's say in cell A1 the user types in "IS 12-19-13" I would like to change the workbook name "IS 12-18-13" in the formula.
=IFERROR(VLOOKUP(BQ17,'[IS 12-18-13.xlsm]Summary'!$B$3:$D$21,3,FALSE),0)
View 3 Replies
View Related
May 28, 2014
I just started venturing into VBA. I'm trying to pull the data from a different workbook that will have the previous month as the sheet's name. I can't get the dynamic part of the code.
[Code] .....
View 5 Replies
View Related
Mar 18, 2008
The table to the right is actually in another workbook, both workbooks will be linked. What I'm trying to achieve is a vlookup formula that will count the items in the left table that have numbers entered into them. (This table will be located within a different workbook).
View 9 Replies
View Related
Nov 29, 2012
I have a challenge with Vlookups!
I have one workbook called Ratecards, which contains various tabs which are named based on a client code. e.g. ABC02
I then have another workbook which has employees in column B and the client code in C3.
The current Vlookup is =VLOOKUP(B8,'[ratecards.xlsx]ABC02'!$A$5:$N$168,4,false) which works fine for one client.
I want to substitute the ABC02 in the vlookup for cell ref C3, as the contents of C3 is variable and I want it to tell the sheet which ratecard to refer to.
View 3 Replies
View Related
Jul 8, 2013
How to get a macro that can do a VLookup on a different workbook, and then paste only the value (not the formula) in a cell.
I.e.
Sub CopyData()
Worksheets("Week 1").Range("G23").Value = _
"=VLOOKUP(""Total A"",'[Cycle.xlsx]Week 2'!R1C1:R90C15,5,FALSE)"
End Sub
but that only puts the formula in that cell. Any way to get it to paste only the value?
View 2 Replies
View Related
Jan 18, 2007
I have this one sheet (File 1) where I have the unique codes of people and am trying to perform a vlookup() for a value by specifying the lookup in a dfferent workbook (File 2) but multiple sheets. In other words the data (unique codes) is scattered in different sheets in that workbook (File 2). I need to perform a vlookup() wherein the codes finds a match in whichever sheet in File 2 and the value in the specified column be entered against the respective cell in File 1.
I tried selecting all the sheets in the formula but it does not return a value for all the inactive sheets in File 2. Vlookup() works fine for the Active sheet only.
View 9 Replies
View Related
Jul 7, 2007
In trying to construct a Vlookup formula that references a table in another workbook, I find that when I double click on the tab in the source workbook to insert the name, and then complete the formula with the column reference and a False statement, I keep getting an “Invalid” statement in the fx wizard when I try to solve this problem. By entering the name range by typing, I get a “#NAME?” error when I go to the wizard to see what I’ve done wrong.
This issue was addressed in the link that I searched for in the old help files and submit in this question. It seems that the issue was never resolved in that posting and I can’t figure out how to resolve this matter.
View 9 Replies
View Related
Nov 14, 2006
I'm trying to Access data from an XL file without actually opening the file. In an XL spreadsheet I type in a cell: =VLOOKUP("A", 'C:[Book2.xls]Sheet1'!$A$1:$B$10,1) and get an answer without a problem. In VBA, I try the line of
Current = Application.VLookup("A", Range("'C:[Book2.xls]Sheet1'!$A$1:$B$10"), 1)
and get an error that says Method 'Range' of object '_Global' failed
View 2 Replies
View Related
Aug 20, 2014
I have a workbook which has data from 2 different time points (6 and 12 months) and this is signified by a prefix to an ID number which is a letter (A or B) and a number:
I need to analyse data separately so I'd like to create 2 separate workbooks, once which imports all of the 6 month data (1 row per case) and one for the 12 month data.
I thought that this would be based around a VLOOKUP of the first 1 or 2 characters but I can't work out how to integrate this with an 'IF' and link it to another workbook.
View 4 Replies
View Related
Dec 24, 2007
I have 2 Workbooks. One is invoice data extracted from SAP and the other is a workbook I have to send to the client (has about 10 worksheets containing 5-10 different branches in each worksheet). The layout of the one I send to the client can not change so I am trying to import the values form the 1st workbook (SAP) into the 2nd workbook. What I do now is copy the first 4 columns of data for each branch and paste it into the 2nd workbook.
I was playing with a VLookup formula but I don’t think that is the correct formula. I need the second workbook to be populated with all the invoice info (Number, Type, Date, Balance) that appears in the raw data workbook.
=VLOOKUP(H14,'[abcbank raw data sample.xls]Sheet1'!$A:$A+'[abcbank raw data sample.xls]Sheet1'!$A:$E,4)
H14 is the branch number on the client sheet (I cut the column containing the branch # on the raw data and inserted it before column A).
Raw Data From SAP
View 13 Replies
View Related
Mar 20, 2009
I want to Vlook a value from a cell in another workbook then before I get the formula result I would like it to concatenate the result with another cell.
I have attached an example
AlEXAMPLE.xls
View 2 Replies
View Related
Feb 4, 2010
The following code shows the result/formula that is generated in a particular cell when I run Macro2:
View 2 Replies
View Related
Apr 15, 2014
Excel 2007
I have a workbook (book1) that is modifying multiple other workbooks (book2). I need to do a vlookup of a sheet in book1 from a value in book2. I then need to insert the value found by the lookup into G7:H7 (merged cells) of book2.
value is in column B of page "Routes" of book1. Found by value B3:C3 of book2. The vlookup looks in column A of book1. The found value is put into G7:H7 of book2.
In a step by step, to possibly make this more clear:
1) check value of B3:C3 in book2
2) find value in Routes sheet of book1, column A
3) upon match, grab the value of column B
4) insert that value into G7:H7 of book2
[URL]
View 3 Replies
View Related
May 13, 2014
I have a very large spreadsheet that I am using to track/analyze enterprise roles and the permissions that go along with each role. On the first sheet, I have a list of all employees (Name, Title, Department, etc) and on another sheet, I have a list of all Security Groups and Distribution Lists (with Members.) What I need to do is create a vba script that completes (1) a VLookUp using the Name column of the Employee sheet as the Criteria and then check against the first column in the Groups/Lists sheet for the matching name. If the employee's name from the Name column is found in the Group/Lists column, replace that name with the employee's Title from the Employee sheet. I then need this process to loop and continue through each column of the Groups/Lists sheet until all columns have completed. The end result should be that all names on the Groups/Lists sheet have been replaced with the corresponding Title found on the Employee sheet.
View 14 Replies
View Related