Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 82
Default vLookup, Look up Value

Hi,

I have problems when the look up value in the vLookup formula is a date, and
the cell has a differente format.

For example, I specify 03/03/10 as the look up value, but the cell has short
date format, so the real value in the cell is 03/03/2010. As a result, the
formula displays #N/A. How can I solve this?

Thanks in advance

Regards,
Emece.-
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default vLookup, Look up Value

It would help to see your VLOOKUP() formula. But I suspect it may look
something like:
=VLOOKUP("03/02/10",Sheet2!A1:B99,2,FALSE)
and in Sheet2, column A you actually have dates. So the text you've entered
( "03/02/10") is treated as text, and not a date, and you don't get a match.

Try a formula like this, using the DATE() function to create the lookup
value to find:
=VLOOKUP(DATE(2010,3,2),E1:F6,2,FALSE)

DATE( ) need arguments in the order of Year, Month, Day, so 2010,3,2 is same
as March 2, 2010.

Another option is to actually put the date to match in a cell and then
reference that cell in your formula, something like
=VLOOKUP(A1,E1:F6,2,FALSE)
with A1 holding the date to match, and E1:F6 being your lookup table.


"Emece" wrote:

Hi,

I have problems when the look up value in the vLookup formula is a date, and
the cell has a differente format.

For example, I specify 03/03/10 as the look up value, but the cell has short
date format, so the real value in the cell is 03/03/2010. As a result, the
formula displays #N/A. How can I solve this?

Thanks in advance

Regards,
Emece.-

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 - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 02:58 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"