Formatting General Text to Date

acool

Board Regular
Joined
Feb 10, 2023
Messages
121
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I am currently have a list of dates that are provided in General Format. What I would like to do is format these values to XX/XX/XXXX Date Format. While I am not provided the with day, I would like each "Day" Value to display as the first of the month. I have provided an example of what I am trying to achieve on in cell B2. Any help would be greatly appreciated. Thank You!


1689186629307.png
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Try:

Excel Formula:
=date(textbefore(A2,"-"),textafter(A2,"-"),1)
 
Upvote 0
Solution
Another option
Fluff.xlsm
AB
1
22022-0101/01/2022
32022-0201/02/2022
Master
Cell Formulas
RangeFormula
B2:B3B2=TEXT(A2&"-01","yyyy-mm-dd")+0
 
Upvote 0
Noting that you are using XL365 - assuming you have your date-stubs in cells A2:A99, this single formula will spill the serial date numbers for all of the values (so you will have to format the cells to display as needed)...

=(A2:A99&"-1")+0
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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