Dates and Time 2024.xlsm | ||||||||
---|---|---|---|---|---|---|---|---|
A | E | F | ||||||
1 | Excel 365 | |||||||
2 | 10/27/2023 | 27-Oct-2023 | 27-Oct-2023 | |||||
3 | 2/27/2023 | 27-Feb-2023 | 27-Feb-2023 | |||||
4 | 3/2/2023 | 2-Mar-2023 | 2-Mar-2023 | |||||
5 | 5/07/2023 | 7-May-2023 | 7-May-2023 | |||||
6 | 2/27/23 | 27-Feb-2023 | ||||||
7 | ||||||||
5i |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E2:E5 | E2 | =--TEXTJOIN("-",,INDEX(TEXTSPLIT(A2,"/"),{3,1,2})) |
F2:F6 | F2 | =LET(dt,TEXTSPLIT(A2,"/"),y,CHOOSECOLS(dt,3),--(IF(LEN(y)<4,"20"&y,y)&"-"&CHOOSECOLS(dt,1)&"-"&CHOOSECOLS(dt,2))) |
Dates and Time 2024.xlsm | ||||||||
---|---|---|---|---|---|---|---|---|
A | F | |||||||
1 | ||||||||
2 | 10/27/2023 | 27/Oct/2023 | ||||||
3 | 2/27/2023 | 27/Feb/2023 | ||||||
4 | 3/2/2023 | 2/Mar/2023 | ||||||
5 | 5/07/2023 | 7/May/2023 | ||||||
6 | 2/27/23 | 27/Feb/2023 | ||||||
7 | ||||||||
5i |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F2:F6 | F2 | =LET(dt,TEXTSPLIT(A2,"/"),y,INDEX(dt,3),--(IF(LEN(y)<4,"20"&y,y)&"-"&INDEX(dt,1)&"-"&INDEX(dt,2))) |
=--TEXTJOIN("/",1,INDEX(TEXTSPLIT(TEXT(A2,"dd/mm/yyyy"),"/"),{2,1,3}))