extract part of data in a cell

everwhat

Board Regular
Joined
Jul 23, 2002
Messages
189
In a cell there is data such as, "Trans071910/10/2002:16:15" and I only want "10/10/2002". How would I extract the information needed? Thank so much!!!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
=MID(cell_here,10,10)


...although limited in it's own fashion.
 
Upvote 0
If the format of the text is always the same (i.e. the date is always 10 characters and the time is always 6 characters) then you could use:

=LEFT(RIGHT(A1,16),10)
 
Upvote 0
AlohaJulio hit it on the spot though, the date must be the 10th charachter from the left for the formula to work. so this is where it's limited.

a more dynamic formula would be required if this is not the case.
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,979
Members
448,934
Latest member
audette89

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