Date change formula

southrndawg15

New Member
Joined
Jan 19, 2017
Messages
5
Who can help me?
I need a formula to change this date
2016-12-31 17:59:10
to display as
12/31/2016 17:59:10
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Select the range in which you want the changes. Then click Ctrl+1 . go to Number >> Custom>>> and type mm-dd-yyyy hh:mm:ss
 
Upvote 0
The source this is imported from makes it weird. when I do what you said, it doesn't change the format. I need to insert a formula in a neighboring cell to change it.
 
Upvote 0
I was using this formula for a similar cell without the time stamp
=MID(a2,7,2)&"/"&RIGHT(a2,2)&"/"&LEFT(a2,5)

But I need the timestamp at the end.
 
Upvote 0
It looks like there is a non-breaking space at the end of the time stamp. I believe that is what's causing the issue. You can use a formula to remove it, then copy your column (with the formula in it) and paste as values.

Formula to remove trailing non-breaking space:

=TRIM(CLEAN(SUBSTITUTE(A2,CHAR(160)," ")))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,389
Messages
6,119,232
Members
448,879
Latest member
VanGirl

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