#1   Report Post  
Posted to microsoft.public.excel.misc
flow23
 
Posts: n/a
Default vlookup help

I have a worksheet with over 30K records.

I am using a Vlookup in Sheet A , for 4 columns and then dragging it down.
(totallly 120K apprx)

It looks something like this in the Macro :
"=VLOOKUP(C[-2],acc!C[-5]:C[7],3,FALSE)"

however, It slows the application a lot.

Is there an alternative?



  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default vlookup help

You may find it easier to add a column to be used for the index into that
column.

For instance (your ranges will vary):
=match(a2,acc!a:e,0)
(say in C2)
This will return the matching row.

Then use that in the next 4 columns:
In D2:
=index(acc!b:b,c2)
In E2:
=index(acc!c:c,c2)
in F2:
=index(acc!d:d,c2)
in g2:
=index(acc!e:e,c2)

Since you're only doing the matching once, you'll find that it's a little
quicker. Maybe even acceptable???

I used A1 reference style--you'll have to modify those formulas if you're using
R1C1 reference style.


flow23 wrote:

I have a worksheet with over 30K records.

I am using a Vlookup in Sheet A , for 4 columns and then dragging it down.
(totallly 120K apprx)

It looks something like this in the Macro :
"=VLOOKUP(C[-2],acc!C[-5]:C[7],3,FALSE)"

however, It slows the application a lot.

Is there an alternative?


--

Dave Peterson
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
Using single cell reference as table array argument in Vlookup CornNiblet Excel Worksheet Functions 3 September 22nd 05 10:15 AM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 07:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 05:51 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 01:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 11:43 AM


All times are GMT +1. The time now is 04:37 AM.

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

About Us

"It's about Microsoft Excel"