Help with formula for extracting a date from another cell

aallaman

New Member
Joined
Dec 4, 2009
Messages
44
Hi Excel Geniuses!

I'm looking for an easy formula to take the long form date and time from column A and simplify it in column B. My first idea is in row 1, to simply reference A1 and format the results as a date. The second idea is to reference A2 and take just the first 10 values and return them in B2.

Any suggestions on how to do either of those things?


AB
12013-03-24T00:00:00-07:0003/24/13
22013-03-24T00:00:00-07:002013-03-24
3

<tbody>
</tbody>









Thanks for your help!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
What is the format of the cells in column A?

As it appears above the formula;

=DATE(LEFT(A1,4),MID(A1,6,2),MID(A1,9,2)) in B2 would work.

Best regards
Richard
 
Upvote 0
You could use text to columns with "T" as the delimeter.
You could also do a similar thing with a formula in B1: =TEXT(LEFT(A1,SEARCH("T",A1)-1),"dd/mm/yy") which will let you specify the format you want.
 
Upvote 0

Forum statistics

Threads
1,213,501
Messages
6,114,010
Members
448,543
Latest member
MartinLarkin

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