Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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









Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP not returning correct answer Alan Davies Excel Worksheet Functions 3 May 10th 06 03:37 PM
MAX Function not returning correct value Phil Excel Worksheet Functions 4 April 28th 06 10:14 PM
vlookup is returning a value one cell above the correct cell. dbaker4 Excel Worksheet Functions 4 April 20th 06 08:21 PM
VLOOKUP not returning correct value leigh Excel Worksheet Functions 6 October 13th 05 12:22 PM
Vlookup not returning correct value Mandy Brookes Excel Worksheet Functions 1 January 26th 05 12:12 PM


All times are GMT +1. The time now is 09:03 AM.

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

About Us

"It's about Microsoft Excel"