MONTH function

  • Thread starter Thread starter Charlie
  • Start date Start date
C

Charlie

How do I get around the MONTH(cell) function returning 1 (Jan) when evaluated
against what I consider to be an empty date cell?

I'm using it within ...
IF(ISNA(VLOOKUP(MONTH(cell),LookupMonth,2,FALSE)),"NA",VLOOKUP(MONTH(I12),LookupMonth,2,FALSE))

I was expecting it to return NA
 
Hi

Try this:

=IF(cell="","NA",IF(ISNA(VLOOKUP(MONTH(cell),LookupMonth,2,FALSE)),"NA",VLOOKUP(MONTH(I12),LookupMonth,2,FALSE)))

Regards,
Per
 
Thanks Per. Works a dream. You're a star.

Per Jessen said:
Hi

Try this:

=IF(cell="","NA",IF(ISNA(VLOOKUP(MONTH(cell),LookupMonth,2,FALSE)),"NA",VLOOKUP(MONTH(I12),LookupMonth,2,FALSE)))

Regards,
Per
 
Back
Top