Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Vlookup function? 1

Status
Not open for further replies.

SpankYou

Programmer
Feb 24, 2003
211
GB
Hey,

Since my last post my job has changed again! basically I have a long list of data in one worksheet each with a unique numerical ID. In another worksheet if a number is typed into a cell, excel needs to check with the long list of data and try n match with typed in number with an ID number. If the ID number matches, it then takes the whole row of data from the long list and places it in the cells next to the number entered in by the user.

I know this is a lot to ask, so even if you could direct me to a book, or just give me a jist of what to do I'd me very appreciative. Unfortunately I'm new to excel.

Thanks

Sam

"You couldn't fool your mother on the foolingest day of your life if you had an electrified fooling machine." - Homer
 
Sam check out the Excel help files for VLOOKUP.

Your example is in fact very simple. all you need to do is have separate VLOOKUP formulas in the cells you want the values in

For example:

=VLOOKUP(A1,A10:D20,2) will return the the data stored in the 2nd column (Col B) of the range (A10:D20) where a match to A1 is found.

Just change the column ref for each of your cells in the results sheet to bring through the corresponding data.

"TIP":

VLOOKUP must be sorted alphabetically/Numerically to work, unless you add the ,False argument to your formula.

So

=VLOOKUP(A1,A10:D20,2)

Becomes

=VLOOKUP(A1,A10:D20,2,FALSE)





Leigh Moore
LJM Analysis Ltd
 
Hey Leigh,

Funnily enough I came across the exact soloution as you posted. What I found was...


thank you all the same, yours has clarified how it works n I am starting to feel a bit better with the whole excel business.

Thanks again

Sam

"You couldn't fool your mother on the foolingest day of your life if you had an electrified fooling machine." - Homer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top