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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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