A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Vlookup not returning correct value



 
 
Thread Tools Display Modes
  #1  
Old August 6th, 2008, 08:23 PM posted to microsoft.public.excel.worksheet.functions
Drebdog
external usenet poster
 
Posts: 3
Default Vlookup not returning correct value

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



  #2  
Old August 6th, 2008, 08:42 PM posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_2_]
external usenet poster
 
Posts: 1,562
Default Vlookup not returning correct value

Do an exact match on unsorted data

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

--
__________________________________
HTH

Bob

"Drebdog" wrote in message
...
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





  #3  
Old August 6th, 2008, 10:49 PM posted to microsoft.public.excel.worksheet.functions
Drebdog
external usenet poster
 
Posts: 3
Default Vlookup not returning correct value

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??

"Bob Phillips" wrote:

Do an exact match on unsorted data

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

--
__________________________________
HTH

Bob

"Drebdog" wrote in message
...
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






  #4  
Old August 6th, 2008, 11:21 PM posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_2_]
external usenet poster
 
Posts: 1,562
Default Vlookup not returning correct value

Check that you don't have the workbook set to manual calculation,
ToolsOptionsCalculation

--
__________________________________
HTH

Bob

"Drebdog" wrote in message
...
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??

"Bob Phillips" wrote:

Do an exact match on unsorted data

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

--
__________________________________
HTH

Bob

"Drebdog" wrote in message
...
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








  #5  
Old August 6th, 2008, 11:29 PM posted to microsoft.public.excel.worksheet.functions
Drebdog
external usenet poster
 
Posts: 3
Default Vlookup not returning correct value

Just checked the settings and it is set up for Automatic

"Bob Phillips" wrote:

Check that you don't have the workbook set to manual calculation,
ToolsOptionsCalculation

--
__________________________________
HTH

Bob

"Drebdog" wrote in message
...
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??

"Bob Phillips" wrote:

Do an exact match on unsorted data

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

--
__________________________________
HTH

Bob

"Drebdog" wrote in message
...
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









 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.