View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Damon Longworth Damon Longworth is offline
external usenet poster
 
Posts: 145
Default formula using dates

=A1-DAY(A1)

--

Damon Longworth

2007 Excel / Access User Conference

Cambridge, England - Nov 29 - Dec 1, 2007


2008 Excel / Access User Conference

Sydney, Australia - Tentatively March 12-14, 2008
www.ExcelUserConference.com/



"MelB" wrote in message
...
I need a formula that does the following:

If A1 is between(and including) 1/1/08 and 1/31/08 I need 12/31/07 returned.
I need that done for each of the 12 months, ie if A1 is between (and
including) 2/1/08 and 2/28/08 I need 1/31/08 returned.