Solved

Is there a quicker way to use Autofill and VLOOKUP to drag down 22000 rows

Posted on 2011-03-15
2
219 Views
Last Modified: 2012-05-11
I am copying corresponding data from Sheet2 to Sheet1.  I am using 11 Vlookup formulas to do bring over a column at a time.  The VLOOKUP formula is as folowws:
=VLOOKUP(A4, Sheet2!$A$1:Sheet2!$L$5564, 2, FALSE)
=VLOOKUP(A4, Sheet2!$A$1:Sheet2!$L$5564, 3, FALSE)
=VLOOKUP(A4, Sheet2!$A$1:Sheet2!$L$5564, 4, FALSE)
=VLOOKUP(A4, Sheet2!$A$1:Sheet2!$L$5564,5, FALSE)
=VLOOKUP(A4, Sheet2!$A$1:Sheet2!$L$5564, 6, FALSE) etc to
=VLOOKUP(A4, Sheet2!$A$1:Sheet2!$L$5564, 12, FALSE)

I have to pull the cross at the bottom of the cell down 22000 rows.  Is there a better way to do this?
0
Comment
Question by:chaverly
2 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 125 total points
ID: 35140208
Don't use VLOOKUP for that.
Use:
=MATCH(A4, Sheet2!$A$1:$A$5564, 0)
in one cell to get the position (say that formula is in B2) then use:
=INDEX(Sheet2!B$1:B$5564, $B2)
and copy across then fill down all the formulas (double-click bottom right of final cell)
Doing the lookup part once for each row rather than 11 times should be much more efficient.

Regards,
Rory
0
 

Author Closing Comment

by:chaverly
ID: 35140654
Wonderful!! Thank you so much.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question