Change Date Format shown in Formula Bar

nagapavan

Board Regular
Joined
Jan 23, 2008
Messages
54
Hi,

I want to change the default date format shown in Formula Bar from dd/mm/yyyy to dd-mm-yyyy.

Can you help me with that?

Also, when I try to split a cell containing time in format hh:mm:ss AM / PM, I am unable to split the AM / PM part due to which I am unable to proceed further.

Thanks in advance,
Pavan
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
try one of these

Method one

Custom number formatting "dd-mm-yyyy"

method two

=TEXT(A1,"dd-mm-yyyy")
 
Upvote 0
I am referring to the default date format in the formula bar, not the cell.

Guess I was not clear earlier.

Pavan
 
Upvote 0
Pavan

I don't think you can change the format in the formula bar

I'm also not sure the format has anything to do with not being able to split the date/time.

How did you try to split them?
 
Upvote 0
Norie -

Can't we change the date format in the backend?

I was trying to split using the Text to Columns option which did not work.

Pavan
 
Upvote 0
Also, I am not held up with splitting due to the date format. But the AM / PM at the end of the date & time format is not whizzing out even if I use convert text to columns and skip the AM / PM column after splitting.

Can you help?
 
Upvote 0
How exactly did you try text-to-columns?
 
Upvote 0
Step 1 - I selected the data
Step 2 - I clicked on Text to Columns option under the Data Menu
Step 3 - I Selected Delimited Option (Next)
Step 4 - I set Space as the Delimiter (Next)
Step 5 - I Selected the column containing AM / PM and selected "Do not Import"
Step 6 - I clicked on Finish

The data format is given below:

4/25/1991 12:00:00 AM
 
Upvote 0
None of the characters you see in a date/time value are really in the cell. Excel stores dates as a numerical offset from "date zero" (December 31, 1899), so January 1, 1900 is stored as 1 by Excel, January 2, 1900 is stored as 2 and so on up to today (September 19, 2011) which is stored by Excel as 40805. The time part of a date/time value is store as a fraction of a 24-hour day represented by that time. So, 6:00 AM is stored as 0.25 because that time represent 6 hours out of 24 hours (6/24 equals 0.25). So, the current date/time here as I write this is September 19, 2011 2:27:00 AM. Excell stores that as 40805.1020833333. What you see in the cell (and the Formula Bar) is displayed that way as a convenience to the human user... the value in the cell, according to Excel, is 40805.1020833333 (put a date/time value in a cell and then change its Cell Format to General to see this). Anyway, to sum up, the AM you see in the time is not there, at least is is not there as a text value, so Text To Columns does not see it so it can't parse it out.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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