Need help to extract date

chelseaaa

New Member
Joined
Nov 7, 2010
Messages
18
I want to extract the date part 2011-08-05 06:00:00 +0000 as 5-Aug-11

I used this formula =TEXT(DATE(LEFT($D2,4),MID($D2,6,2),MID($D2,9,2)),"DD-MM-YY") to extract it to 05-08-11 but I want it as 5-Aug-11.

Can someone help me?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
try =TEXT(DATEVALUE(LEFT(D8,10)), "d-mmm-yyyy")

alternalty, you could put
=DATEVALUE(LEFT(D8,10)) in the cell and format the cell with the custom format "d-mmmm-yy" so that the cell holds an excel serial date, which is easier to work with than a string.
 
Last edited:
Upvote 0
I want to extract the date part 2011-08-05 06:00:00 +0000 as 5-Aug-11

I used this formula =TEXT(DATE(LEFT($D2,4),MID($D2,6,2),MID($D2,9,2)),"DD-MM-YY") to extract it to 05-08-11 but I want it as 5-Aug-11.

Can someone help me?
This works for me...

=--LEFT(D2,10)

Format as Date
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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