Identify Date Format from the date

ali1985

New Member
Joined
Dec 14, 2019
Messages
18
Office Version
  1. 2016
Hi Experts,

I have many dates that comes from invoices (all in different formats). Challenge is to know if 03/04/2022 stands for 4th march or 3rd april. Hence, I'm maintaining supplier wise date formats.

However, for a new supplier, since the date format is not maintained in the database, its challenging to move forward.

Is there any formula to paste the date in a cell and get the format of it in its adjacent cell.like:

Input: Date - 25/03/2022
Output that i need: DD/MM/YYYY

Note: there ar more than 50+ date formats. Any other alternate approach will also be appreciated.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Check this - I have put same dates in two different formats. But D1, D2, D4, G can be different in your and my part of world depending what default settings your system has. So better test it first and then apply.

All Records.xlsb
FG
117/4/22D1
1207/04/2022D4
Sheet1
Cell Formulas
RangeFormula
G11:G12G11=CELL("format",F11)
 
Upvote 0
Check this - I have put same dates in two different formats. But D1, D2, D4, G can be different in your and my part of world depending what default settings your system has. So better test it first and then apply.

All Records.xlsb
FG
117/4/22D1
1207/04/2022D4
Sheet1
Cell Formulas
RangeFormula
G11:G12G11=CELL("format",F11)
Thanks for your prompt response.

Had 2 doubts:
1- When i m pasting your first date, it automatically gets converted into the 2nd date (22 changing to 2022). If i change the data type to text, then some other date format is getting detected. Is there any work around on this since i will have only 1 cell and in that cell the invoice date will be pasted and it should be pasted as it is

2- from where can i get a mapping table to understand what D1and D4 represent?
 
Upvote 0
where can i get a mapping table to understand what D1and D4 represent?
My suggestion is that you use the CELL formula on 5-6 same date entries with different formats and you shall get the answer

What I have understood so far is that D1 is default system date format
 
Upvote 0

Forum statistics

Threads
1,214,392
Messages
6,119,257
Members
448,880
Latest member
aveternik

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