Extract Data to be Date Format (dd-mm-yyyy)

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,089
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all..

how to figure out this problem:
original listafter extracted (dd-mm-yyyy)
ND-60 05 Desember 202405/01/2024
ND-65 19 Desember 202419/12/2024
ND-564 19 Desember 2024etc…
ND-08 06 Februari 2024
ND-13 05 Maret 2024
ND-22 01 April 2024
ND-176 01 April 2024
ND-29 06 Mei 2024
ND-35 06 Juni 2024
ND-44 04 Juli 2024
ND-348 04 Juli 2024
ND-52 06 Agustus 2024
ND-63 04 September 2024
ND-69 04 Okt 2024
ND-535 04 Okt 2024


i hope someone would help me out this situation
date format in dd-mm-yyyy

sst.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
It looks like your system understands English rather than Indonesian- despite the regional settings. Essentially you'd need to translate the months into English version. I don't have a solution on top of my head but will think about it...Someone might offer you a solution before then.
 
Upvote 0
I think this should work in 2021.
Book1
ABCDE
1original listafter extracted (dd-mm-yyyy)JanuariJanuary
2ND-60 05 Desember 202412/5/24FebruariFebruary
3ND-65 19 Desember 202412/19/24MaretMarch
4ND-564 19 Desember 202412/19/24AprilApril
5ND-08 06 Februari 20242/6/24MeiMay
6ND-13 05 Maret 20243/5/24JuniJune
7ND-22 01 April 20244/1/24JuliJuly
8ND-176 01 April 20244/1/24AgustusAugust
9ND-29 06 Mei 20245/6/24SeptemberSeptember
10ND-35 06 Juni 20246/6/24OktoberOctober
11ND-44 04 Juli 20247/4/24NovemberNovember
12ND-348 04 Juli 20247/4/24DesemberDecember
13ND-52 06 Agustus 20248/6/24JanJanuary
14ND-63 04 September 20249/4/24FebFebruary
15ND-69 04 Okt 202410/4/24MarMarch
16ND-535 04 Okt 202410/4/24AprApril
17MeiMay
18JunJune
19JulJuly
20AguAugust
21SepSeptember
22OktOctober
23NovNovember
24DesDecember
Sheet5
Cell Formulas
RangeFormula
B2:B16B2=LET( a,A2, f,FIND(CHAR(160),SUBSTITUTE(a," ",CHAR(160),{2,3})), indo,MID(a,INDEX(f,1)+1,SUM(f*{-1,1})-1), s,SUBSTITUTE(a,indo,XLOOKUP(indo,$D$1:$D$24,$E$1:$E$24)), --RIGHT(s,LEN(s)-FIND(" ",s)) )
 
Upvote 0
Without having to use a lookup table. A bit clumsy I admit but it works.

Format as DD/MM/YYYY

Assumes that the data starts in A2. Change cell reference as appropiate.

Excel Functions.xlsm
AB
1original listafter extracted (dd-mm-yyyy)
2ND-60 05 Desember 202405/12/2024
3ND-65 19 Desember 202419/12/2024
4ND-564 19 Desember 202419/12/2024
5ND-08 06 Februari 202406/02/2024
6ND-13 05 Maret 202405/03/2024
7ND-22 01 April 202401/04/2024
8ND-176 01 April 202401/04/2024
9ND-29 06 Mei 202406/05/2024
10ND-35 06 Juni 202406/06/2024
11ND-44 04 Juli 202404/07/2024
12ND-348 04 Juli 202404/07/2024
13ND-52 06 Agustus 202406/08/2024
14ND-63 04 September 202404/09/2024
15ND-69 04 Okt 202404/10/2024
16ND-535 04 Okt 202404/10/2024
Sheet4
Cell Formulas
RangeFormula
B2:B16B2=DATEVALUE(LEFT(SUBSTITUTE(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"Mei","May",1),"Agustus","Aug"),"Okt","Oct"),"Des","Dec"),FIND(" ",SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"Mei","May",1),"Agustus","Aug"),"Okt","Oct"),"Des","Dec"),1),100),RIGHT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"Mei","May",1),"Agustus","Aug"),"Okt","Oct"),"Des","Dec"),4),""),7)&" "&RIGHT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"Mei","May",1),"Agustus","Aug"),"Okt","Oct"),"Des","Dec"),4))


Excel Formula:
=DATEVALUE(LEFT(SUBSTITUTE(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A4,"Mei","May",1),"Agustus","Aug"),"Okt","Oct"),"Des","Dec"),FIND(" ",SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A4,"Mei","May",1),"Agustus","Aug"),"Okt","Oct"),"Des","Dec"),1),100),RIGHT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A4,"Mei","May",1),"Agustus","Aug"),"Okt","Oct"),"Des","Dec"),4),""),7)&" "&RIGHT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A4,"Mei","May",1),"Agustus","Aug"),"Okt","Oct"),"Des","Dec"),4))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,884
Messages
6,175,177
Members
452,615
Latest member
bogeys2birdies

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