Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
variable substitution in a formula linking to external workbook my Excel Discussion (Misc queries) 2 August 29th 07 03:05 PM
XP linking to external cells bug? JethroUK© New Users to Excel 3 August 19th 05 11:16 PM
Follow up question for Tom Ogilvy - linking a text box to an external workbook JENNA Excel Programming 2 January 17th 04 11:29 PM
Linking a text box to an external Excel workbook JENNA Excel Programming 1 January 16th 04 12:54 PM
Linking a text box to an external workbook JENNA Excel Programming 0 January 15th 04 06:36 AM


All times are GMT +1. The time now is 10:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"