Extract Data to Date Format

muhammad susanto

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

i need excel formula how to extract data this below "
sample rawafter formula (date format)...dd/mm/yy
7143/R/DJSDPPI.3/KOMINFO/11/2012 Tgl.19 Nopember 201219/11/2012
100/R/DJSDPPI.3/KOMINFO/11/2012 Tgl.10 Januari 201210/01/2012
45/R/DJSDPPI.3/KOMINFO/11/2012 Tgl.26 Maret 201226/03/2012

<tbody>
</tbody>

note : red font just clue..
not using vba

any assistance, thanks in advance..

m.susanto
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
It does assume that 'Tgl.' always precedes the date,
It (as with all the 'FIND' suggestions) also assumes "Tgl." does not occur earlier in the string as well. That is quite likely the case given the sample data but the SUBSTITUTE method would be a little more robust in that regard. I must admit though that I used it here more from habit of extracting something from the end of a string. :)

I'd thought about using MiD, but hadn't thought to set the final value to a large value.
Just a note that it doesn't need to be a very large value in this case. If the dates were English, 17 would do for that length parameter since September is the longest written month - 9 characters + 4 for the year + 2 (maximum) for the day + 2 spaces
 
Upvote 0
i think, use Find & Replace fitur

Find : *Tgl.
Replace : All

It's done...
Great idea. I had meant to mention that idea in my post but your first post seemed to indicate you wanted a formula & then it slipped my mind.
If using Find/Replace with your data, just the following would do too. :)
Find: *.
 
Upvote 0
Hi Peter, thanks for the explanation. I've seen Substitute used in a number of posts, but I haven't yet adopted it! Time to do some more learning.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,215,161
Messages
6,123,380
Members
449,097
Latest member
Jabe

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