Separate Date

Reec0n

New Member
Joined
Jan 30, 2017
Messages
20
An easy one for the forum I'm sure:

I have a list of these:

[TABLE="width: 164"]
<tbody>[TR]
[TD="class: xl65, width: 164"]Wed Aug 01 11:13:36 2018

I would like to take the date only and have them in a separate column like this 01/08/2018

All help welcomed,

tia [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Assuming it's only the date and time in your cell:

=(MID(A1,5,6)&", "&RIGHT(A1,4))+0

Format as the date format dd/mm/yyyy


Excel 2010
AB
1Wed Aug 01 11:13:36 201801/08/2018
Sheet1
Cell Formulas
RangeFormula
B1=(MID(A1,5,6)&", "&RIGHT(A1,4))+0
 
Last edited:
Upvote 0
Assuming it's only the date and time in your cell:

=(MID(A1,5,6)&", "&RIGHT(A1,4))+0

Format as the date format dd/mm/yyyy

Excel 2010
AB
Wed Aug 01
11:13:36 2018

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: right"]01/08/2018[/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]B1[/TH]
[TD="align: left"]=(MID(A1,5,6)&", "&RIGHT(A1,4))+0[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

Thank you for this; however, I get a #VALUE ! error? it is the same as above so not sure -if i remove the +0 at the end i get date as Aug 01, 2018 :|
 
Upvote 0
I wonder if you have extra spaces in that.

Does this work for you?

=(TRIM(MID(A1,5,6)&", "&RIGHT(A1,4)))+0
 
Upvote 0
Can you post an exact example of the data where it is not working?
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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