Date format

Solved/Closed
deakin1980 - Dec 14, 2016 at 08:56 AM
 deakin1980 - Dec 14, 2016 at 03:18 PM
Hello,

i am trying to create a report which will show me the first date and last date of the previous month. I need first date in one field and second in another.

Is there a formula i can use for this?

Thanks

Related:

2 responses

yg_be Posts 22698 Registration date Sunday June 8, 2008 Status Contributor Last seen April 18, 2024 5
Updated by yg_be on 14/12/16 at 01:40 PM
If your date is in A,
First day of the previous month: =DATE(YEAR(A1);MONTH(A1)-1;1)
Last day of the previous month: =A1-DAY(A1)
If your reference day is now,
First day of the previous month: =DATE(YEAR(TODAY());MONTH(TODAY())-1;1)
Last day of the previous month: =TODAY()-DAY(TODAY())
0
Your a star exactly what I was looking for. Finally can complete my macro :)
0