MONTH function

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
 
P

Per Jessen

Hi

Try this:

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

Regards,
Per
 
C

Charlie

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top