View Single Post
  #3   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi


"Duke Carey" wrote in message
...
=DAYS(EOMONTH( target date,0))

to use EOMONTH() you must have the Analysis toolpack add-in loaded

To get the same answer without the Analysis toolpack

=DAY(Date(year(target date), month( target date)+1, 1)-1)


Somewhat shorter version:
=DAY(Date(year(target date), month( target date)+1, 0))


Arvi Laanemets