Solved

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

Posted on 2011-03-15
2
221 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

733 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