Re: working with dates

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi

=DATE(YEAR(TODAY()),MONTH(TODAY()),1) for first of month
=DATE(YEAR(TODAY()),MONTH(TODAY())+1,0) for last of month
works on the 0th day of a month is equal to last day of previous month

so
=TEXT(DATE(YEAR(TODAY()),MONTH(TODAY()),1),"mm/dd/yyyy") &" - " &
TEXT(DATE(YEAR(TODAY()),MONTH(TODAY())+0,0),"mm/dd/yyyy")
--
Regards

Roger Govier


"Hru48" <Hru48.22hzpy_1138708802.0311@xxxxxxxxxxxxxxxxxxxxx> wrote in
message news:Hru48.22hzpy_1138708802.0311@xxxxxxxxxxxxxxxxxxxxxxxx
>
> Hey all,
>
> I need a cell to work to return the first and last day of the month it
> is in without me having to type anything in. In the format
> mm/dd/yyyy -
> mm/dd/yyyy
>
> I was thinking I could use date(now) and then use date difference to
> figure this out but i'm not too sure on the syntax.
>
> Any help would be great.
>
> Thanks.
>
>
> --
> Hru48
> ------------------------------------------------------------------------
> Hru48's Profile:
> http://www.excelforum.com/member.php?action=getinfo&userid=24895
> View this thread:
> http://www.excelforum.com/showthread.php?threadid=506719
>


.



Relevant Pages

  • Re: Charts wont update
    ... reading your post more carefully I guess my syntax does look ... pwermuth's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=24997 ... Prev by Date: ...
    (microsoft.public.excel.charting)
  • Re: Date Serial
    ... Try Custom: mm/dd/yyyy ... swatsp0p's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=15101 ... Prev by Date: ...
    (microsoft.public.excel)
  • Re: Conditional formating help.
    ... Okay but I need the syntax for the third condition. ... JustMe602's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=27854 ... Prev by Date: ...
    (microsoft.public.excel)
  • Re: How do I change FALSE values to 0?
    ... Standard IF syntax: ... MrShorty ... MrShorty's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=22181 ... Prev by Date: ...
    (microsoft.public.excel.misc)
  • Re: counting charts
    ... (check my syntax ...) ... optionbase1's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=25212 ... Prev by Date: ...
    (microsoft.public.excel.charting)