Formula to restate a date to the 1st day of the month

Sundance_Kid

Board Regular
Joined
Sep 2, 2017
Messages
128
Office Version
  1. 365
Platform
  1. Windows
Hi, I am looking to figure out a formula that can basically restate a date to the 1st day of the month.

I use the format dd/mm/yyyy

So, if I have a file with multiple rows & dates on each row, what formula can restate the date to the 1st day of that month?

Below would be an example of dates to add a formula to restate them.

18/01/2022
22/12/2021
02/04/2021

Thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Here is one way (for a date in cell A1):
Excel Formula:
=EOMONTH(A1,-1)+1
 
Upvote 0
Solution
Hi Sundance_Kid,

It depends if your dates are in text or actual Excel date formats.

Sundance_Kid.xlsx
ABCDEFGH
1TextResultDateResult…orResult
218/01/202201/01/202218-Jan-2201-Jan-2218-Jan-2201-Jan-22
322/12/202101/12/202122-Dec-2101-Dec-2122-Dec-2101-Dec-21
402/04/202101/04/202102-Apr-2101-Apr-2102-Apr-2101-Apr-21
Sheet1
Cell Formulas
RangeFormula
B2:B4B2="01"&MID(A2,3,8)
E2:E4E2=DATE(YEAR(D2),MONTH(D2),1)
H2:H4H2=EOMONTH(G2,-1)+1
 
Upvote 0
Here is one way (for a date in cell A1):
Excel Formula:
=EOMONTH(A1,-1)+1
Thanks, so does EOMONTH(A1,-1) on its own bring you to the end of the current month and then the -1 bring you back to the end of the previous month?
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,214,431
Messages
6,119,462
Members
448,899
Latest member
maplemeadows

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top