Trying to format a cell to Date/Time.

Bcornish

New Member
Joined
Nov 10, 2017
Messages
6
Hello,
I'm trying to set up Cell "B1" to pull the date and time from cell "A1" and then Format it to the Date/Time format. Cell "B1" pulls the information from "A1" using the formula below. When I try to change the format to Date/Time Cell "B1" is not effected.

[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A
[/TD]
[TD="align: center"]B
[/TD]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD="align: center"][TABLE="width: 397"]
<colgroup><col width="397"></colgroup><tbody>[TR]
[TD="class: xl66, width: 397"]To OAKLAND, CA Delivered 11/01/17 at 12:07PM[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: center"][TABLE="width: 107"]
<colgroup><col width="107"></colgroup><tbody>[TR]
[TD="width: 107"]11/01/17 12:07[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]

The formula for cell "B1" is =LEFT(RIGHT(A1,19),8) & " " & LEFT(RIGHT(A1,7),5)

I appreciate any input.
Thank you
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
When you say Date/Time format, how exactly do you want it to display in cell B1?
 
Upvote 0
You can format it however you like using the TEXT function. So for example if I wanted 11/01/17 to display as Wed 11 Jan 2017 I would change the formula to:


=TEXT(LEFT(RIGHT(A1,19),8),"ddd dd mmm yyyy") & " " & LEFT(RIGHT(A1,7),5)


Which would mean cell B1 reads


Wed 11 Jan 2017 12:07
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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