Vlookup not returning correct value

D

Drebdog

Have a simple VLookup set up to retun a time value for a concantenated
statement since the statement will not display the time in a readable format.
Everything works fine except some of the times reflect the earlier time even
though there is an exact match. Set it up for True and it comes back with
#N/A even though there is an exact match. What am I missing?
Example:
Look up value Desired return value VLookup formula
Results
12:00:00 AM 0:00 =VLOOKUP(A3,Sheet1!$A$2:$B$155,2) 0:00
12:01:00 AM 0:01 =VLOOKUP(A4,Sheet1!$A$2:$B$155,2) 0:01
12:10:00 AM 0:10 =VLOOKUP(A5,Sheet1!$A$2:$B$155,2) 0:10
12:20:00 AM 0:20 =VLOOKUP(A6,Sheet1!$A$2:$B$155,2) 0:10
12:30:00 AM 0:30 =VLOOKUP(A7,Sheet1!$A$2:$B$155,2) 0:30
12:40:00 AM 0:40 =VLOOKUP(A8,Sheet1!$A$2:$B$155,2) 0:30
12:50:00 AM 0:50 =VLOOKUP(A9,Sheet1!$A$2:$B$155,2) 0:50
1:00:00 AM 1:00 =VLOOKUP(A10,Sheet1!$A$2:$B$155,2) 0:50
1:10:00 AM 1:10 =VLOOKUP(A11,Sheet1!$A$2:$B$155,2) 1:10
1:20:00 AM 1:20 =VLOOKUP(A12,Sheet1!$A$2:$B$155,2) 1:10
1:30:00 AM 1:30 =VLOOKUP(A13,Sheet1!$A$2:$B$155,2) 1:30
1:40:00 AM 1:40 =VLOOKUP(A14,Sheet1!$A$2:$B$155,2) 1:30
1:50:00 AM 1:50 =VLOOKUP(A15,Sheet1!$A$2:$B$155,2) 1:50
2:00:00 AM 2:00 =VLOOKUP(A16,Sheet1!$A$2:$B$155,2) 1:50
2:10:00 AM 2:10 =VLOOKUP(A17,Sheet1!$A$2:$B$155,2) 2:10
2:20:00 AM 2:20 =VLOOKUP(A18,Sheet1!$A$2:$B$155,2) 2:20
2:30:00 AM 2:30 =VLOOKUP(A19,Sheet1!$A$2:$B$155,2) 2:20
2:40:00 AM 2:40 =VLOOKUP(A20,Sheet1!$A$2:$B$155,2) 2:30
2:50:00 AM 2:50 =VLOOKUP(A21,Sheet1!$A$2:$B$155,2) 2:40
 
B

Bob Phillips

Do an exact match on unsorted data

=VLOOKUP(A3,Sheet1!$A$2:$B$155,2,FALSE)
 
D

Drebdog

I did that and the entries that were incorrect came up as #N/A, so I verified
each of the entries and looked for spaces and they are identical. The
strange thing is that if just click on the next cell nothing changes, but if
I hit enter after verifying one or the other or both it works. Now the
problem, when I inport updated data it goes back to the random ones being
correct and it is very inefficient to go through and manually touch each of
the cells to get this to work. Any suggestions??
 
B

Bob Phillips

Check that you don't have the workbook set to manual calculation,
Tools>Options>Calculation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top