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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VLOOKUP / IF Statement

Status
Not open for further replies.

elfa

Technical User
Feb 23, 2004
19
AU
Hello,

I have the following to solve and have been unable to get the right formula to make it work. Hope you can help.

Cell A1 has a code say it is 4-1120

Column D had a list of codes from line 1 to 100 and one of them is 4-1120. Say this is on line 50

Column E next to all of the codes has numberical values. Say the value next to 4-1120 is 500 on line 50

How do I write a formula that says if the value in A1 matches one of the values in Column D then return the value from column E in cell A2

Thanks very much
Elfa
 
This can be achieved by writing the following formula in cell A2:

Code:
=VLOOKUP(A1,D:E,2,FALSE)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top