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

VLOOKUP not returning correct results 1

Status
Not open for further replies.

Fr33dan

Programmer
Jun 28, 2007
79
0
0
US
I'm creating a spreadsheet that need to take values from Column A lookup the closest value in Column AA and place the corresponding value in column AB into column B. All the data begins on row 15.
Code:
AA    |AB
869.18|-200.43
670.37|-88.8
353.19|-14.7
0     |-5.5

When I put =VLOOKUP(A15,$AA$15:$AB$54,2,TRUE) into B15 it returns -5.5 but A15 = 869.18 so it should return -200.43.
 

When the fourth parameter is TRUE, the table must be sorted in ascending order (Column AA in this case).

If you sort your data correctly, you should see the correct result.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top