Thread: Date/Time
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cmatera cmatera is offline
external usenet poster
 
Posts: 18
Default Date/Time

Trying to determine if the date and the time in a cell are the last
day of the month, and if that's the case I want to perform a certain
operation.

Here's what I have so far:

=IF(NOT(DATE(YEAR(A1),MONTH(A1)+1,0)),1,0)

A1 is 2/29/08

My formula returns 0, I would expect this to return a 1 as 2/29/08 IS
the last day of February...
Any ideas why this might not be working?

Thanks

Chris