Convert Date to first of month, i.e. 12Jul24 to 1Jul24

slam

Well-known Member
Joined
Sep 16, 2002
Messages
886
Office Version
  1. 365
  2. 2019
I have a series of dates in the format d-mmm-yy h:mm:ss

For example:

17-Nov-23 0:00:00
29-Jun-23 0:00:00
2-Oct-23 0:00:00
29-Feb-24 0:00:00
30-Jun-23 0:00:00
1-Jul-24 0:00:00
11-Dec-23 0:00:00

In an adjacent column, I need to convert these to be the 1st of the same month/year. I.e., the dates above would become:

1-Nov-23 0:00:00
1-Jun-23 0:00:00
1-Oct-23 0:00:00
1-Feb-24 0:00:00
1-Jun-23 0:00:00
1-Jul-24 0:00:00
1-Dec-23 0:00:00

Is there a formula that could do this for me?

Thanks!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Ah, I did not know there was a function for this, thank you!

So the -1 is for previous month, then the +1 is to add 1 day, making it the 1st of the month I'm looking for?
 
Upvote 0
Ah, I did not know there was a function for this, thank you!

So the -1 is for previous month, then the +1 is to add 1 day, making it the 1st of the month I'm looking for?

Yes, last day of the previous month plus one day
 
Upvote 1

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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