#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 703
Default MONTH function

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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default MONTH function

Hi

Try this:

=IF(cell="","NA",IF(ISNA(VLOOKUP(MONTH(cell),Looku pMonth,2,FALSE)),"NA",VLOOKUP(MONTH(I12),LookupMon th,2,FALSE)))

Regards,
Per

"Charlie" skrev i meddelelsen
...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 703
Default MONTH function

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

"Per Jessen" wrote:

Hi

Try this:

=IF(cell="","NA",IF(ISNA(VLOOKUP(MONTH(cell),Looku pMonth,2,FALSE)),"NA",VLOOKUP(MONTH(I12),LookupMon th,2,FALSE)))

Regards,
Per

"Charlie" skrev i meddelelsen
...
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




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
function to fill all days of month to end of month Monique Excel Worksheet Functions 11 May 1st 06 07:39 PM
function to fill all days of month to end of month YaHootie Excel Worksheet Functions 10 May 1st 06 06:01 AM
Function or formula to convert "text" month to number of month Steve Vincent Excel Discussion (Misc queries) 1 February 4th 06 04:19 PM
When using MONTH function on Blank Cell!! Returns Month=Jan! mahou Excel Discussion (Misc queries) 6 January 9th 06 02:46 AM
=Month function in Excel gives incorrect month jbmx New Users to Excel 1 September 14th 05 07:58 PM


All times are GMT +1. The time now is 05:33 AM.

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

About Us

"It's about Microsoft Excel"