Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Linking to external workbook
Sorry if you've read this. However, I didn't see the question appear in my
reader. I have a project that includes parsing a .txt file into Excel. Included in the fields imported is an EmplID. I need to retrieve data from separate workbooks based on this. My experiment with Index and Match produced slow results when linked to one other workbook (about a minute for 4000 records). I am currently looping using i to increment the row number in the lookup formula. Is there a faster method (either not using Index/Match or not looping)? Steve Steve |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Linking to external workbook
If you open the other workbook, things will probably go a lot faster.
-- Regards, Tom Ogilvy "Steve" <No Spam wrote in message ... Sorry if you've read this. However, I didn't see the question appear in my reader. I have a project that includes parsing a .txt file into Excel. Included in the fields imported is an EmplID. I need to retrieve data from separate workbooks based on this. My experiment with Index and Match produced slow results when linked to one other workbook (about a minute for 4000 records). I am currently looping using i to increment the row number in the lookup formula. Is there a faster method (either not using Index/Match or not looping)? Steve Steve |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Linking to external workbook
Also, you can enter a row oriented formula template in one command
Range("B2:B100").formula = "=Index([Book1.xls]Sheet1!$A$1:$A$1000,Match(A2,[Book1.xls]Sheet1!$F$1:$F$10 0,0),1)" as an example -- Regards, Tom Ogilvy "Steve" <No Spam wrote in message ... Sorry if you've read this. However, I didn't see the question appear in my reader. I have a project that includes parsing a .txt file into Excel. Included in the fields imported is an EmplID. I need to retrieve data from separate workbooks based on this. My experiment with Index and Match produced slow results when linked to one other workbook (about a minute for 4000 records). I am currently looping using i to increment the row number in the lookup formula. Is there a faster method (either not using Index/Match or not looping)? Steve Steve |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Linking to external workbook
Tom
Thank you ... for this and the tip to open the other workbook. When testing, I noted that writing a loop within a workbook was far quicker than the code I have looping to an external workbook. Would I be correct in thinking each time the formula is written during a loop, Excel look for the external connection, despite calculations and screen updating being off? Steve "Tom Ogilvy" wrote in message ... Also, you can enter a row oriented formula template in one command Range("B2:B100").formula = "=Index([Book1.xls]Sheet1!$A$1:$A$1000,Match(A2,[Book1.xls]Sheet1!$F$1:$F$10 0,0),1)" as an example -- Regards, Tom Ogilvy "Steve" <No Spam wrote in message ... Sorry if you've read this. However, I didn't see the question appear in my reader. I have a project that includes parsing a .txt file into Excel. Included in the fields imported is an EmplID. I need to retrieve data from separate workbooks based on this. My experiment with Index and Match produced slow results when linked to one other workbook (about a minute for 4000 records). I am currently looping using i to increment the row number in the lookup formula. Is there a faster method (either not using Index/Match or not looping)? Steve Steve |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
variable substitution in a formula linking to external workbook | Excel Discussion (Misc queries) | |||
XP linking to external cells bug? | New Users to Excel | |||
Follow up question for Tom Ogilvy - linking a text box to an external workbook | Excel Programming | |||
Linking a text box to an external Excel workbook | Excel Programming | |||
Linking a text box to an external workbook | Excel Programming |