View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Auto calculating the month end

Or even
=date(2007,10,0)

The zeroeth day of the next month is the last day of the previous month.



Jim Thomlinson wrote:

My preference is to use the first of the next month minus one. Something like
this...

=DATE(2007, 10, 1) - 1
Placed in a cell gives you Sept 30th...
--
HTH...

Jim Thomlinson

"Rip1877" wrote:

I am trying to work on a template for a bi-weekly employee time sheet. I need
the dates to range from the 1st to the 15th, and then from the 16th till the
end of the month. Is there a formula that can be used so the system would
recognize the months that have 30 or 31 days?


--

Dave Peterson