View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Harlan Grove[_2_] Harlan Grove[_2_] is offline
external usenet poster
 
Posts: 1,231
Default VLOOKUP: Wont return value

mind_killer wrote...
Hi,
I have the opposite problem of some of those here. VLOOKUP is returning #N/A
when it should be returning a value.

The formula I am using is:
=VLOOKUP($B38,Roster!$B:$F,2,TRUE)

The lookup value is a date, I have been playing around with the format but
it has not fixed it.


If B38 in the same worksheet as this formula were a number but the
values in Roster!B:B were text, you'll get #N/A whether the 4th
argument to VLOOKUP is TRUE or FALSE.

What do the formulas =COUNT(B38) and =COUNT(Roster!B:B) return?

Formatting has NO EFFECT on cell values. If Roster!B:B does contain
text, the select it and run the menu command Data Text to Columns,
and when the dialog appears just click on the Finish button. That
should convert all valid dates to numeric date values.