formula to format date formatted as General

Mr_Stern

New Member
Joined
Feb 26, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I am looking for help on formatting dates in excel.

The system that spits out my data puts the date out in 'general' format.
E.g. for January 2023 it will say 202311 (meaning 2023/01/01)
for December 2023 it will say 2023121 (meaning 2023/12/01)
Ideally I am looking for dd/mm/yyyy, but will work with other regional displays if needed.
Note that it does not place any 0's before the month or day.
The day will always be 1

If I simply try to change the format from general to date, the figures are not the binary date value
e.g. for 202311 it will give me the date of 26/11/2453
In addition the 'general' format along with the missing 0's has me perplexed on how to account for this.

I tend to work with a few thousand rows a month, so manual adjustment are tedious.
Any thoughts on how to create a formula to c
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
T202306a.xlsm
AB
22023111-Jan-23
3e
Cell Formulas
RangeFormula
B2B2=DATE(LEFT(A2,4),MID(A2,5,LEN(A2)-5),1)
 
Upvote 0

Forum statistics

Threads
1,215,081
Messages
6,123,016
Members
449,093
Latest member
ikke

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