I want the cells to display dates in the format dd.mm.yyyy which is done correctly, but it only takes input in the form of mm/dd/yyyy. How do I change it so the input it takes is either dd.mm.yyyy or dd/mm/yyyy? I tried doing the Text to columns selecting MDY but it didnt help, it only changed the display if dates were already displayed in MDY format.
My language settings are English UK and my locale is set to Danish.
Display cell:
Input:
I want the input to interpret dd.mm.yyyy or at least dd/mm/yyyy. I am not talking about switching the format cells to date. That is what I have already done in the display. I want the input to not have to be in M/D/Y format in order for Excel to understand it is a date I am giving it.
I found the solution to my own question.
To change the input display, you go into your system settings and change the regional time/date settings. Mine was by default set to US. Changing it to UK worked for me.
Select the cell with a date in Excel, press Ctrl+1 to open the Format Cells window and switch to the General tab. There you can choose the type as date, and then it offers you a range of formats. You can even use a custom format if you like
How do I convert time in excel from 2017-04-03T12:16:27.961Z format to a DD-MMM-YY format
I am trying to convert data from CA Agile into excel so that i can depict changes over time. Right now I am forced to manually change the format instead of using an automated way.
Use this formula, then format as you wish:
=--SUBSTITUTE(SUBSTITUTE(A1,"T"," "),"Z","")
Try this formula and format the cell with dd-mmm-yy ,
=DATEVALUE(TEXT(LEFT(A1,10),"dd-mmm-yy"))
I have been searching it for an hour but unfortunately nothing found that actually work. I have an excel sheet with a column having date in it. Current date format is dd.mm.yyyy but I want to change date format to yyyy/mm/dd for entire cell.
OPTION 1)
Assuming that you source date that is in the number format dd.mm.yyyy stored as an excel date serial and only formatted to display as dd.mm.yyyy then the best fix is to select the cells you want to modify. Go to your home tab, and select the number format and change it to General. See Green circles in image below. IF the format is already set to general, or when you switch it to general your numbers do not change, then it is most likely that your date in dd.mm.yyyy format is actually text. and will needed to be converted as per OPTION 2 below. However, if the number does change when you set it to general, select the arrow in the bottom right corner of the number area (see red circle).
After clicking the arrow in the red circle you should see a screen similar to the one below:
Select Custom from the category list on the left, and then in the Type bar enter the format you want which is yyyy/mm/dd.
OPTION 2
=date(Right(A1,4),mid(A1,4,2),left(A1,2))
This assumes your original date is a string stored in A1, and converts the string to a date serial in the form excel stores dates in.1 You can copy this formula down beside you dates. You can then apply cell formatting for the date as described above, or use the build short or long date if that style matches your needs.
1Excel counts the number of days since January 0 1900 for the windows version of excel. I believe mac is 1904 or 1905.
The problem is that your date is a text string, so changing the cell number format won't have any effect.
One method of convert the dates in place to "real" dates is to use the Text to Columns wizard.
Select your date(s).
Select the Text to Columns option on the Data Tools Tab of the Data Ribbon:
At Step 1, select "Fixed Width" then "Next"
Step 2 is irrelevant
At Step 3, for the date column, select DMY as the format. You can also select the "Destination" if you want the results written elsewhere.
Then "Finish".
That's it. Your dates will be converted in place
Since your dates are now "real" Excel dates, you can use the Cell ► Number Format dialog to change the format to whatever you want.
Nothing wrong with your format i.e. yyyy/mm/dd. You can use:
=TEXT(A1,"yyyy/mm/dd")
Update
A comment was made on this question re the TEXT function converting a date-serial to text. It will still be possible to apply date functions to the output of the TEXT function and get an output. E.g. here we can see WEEKDAY returning a result on the value of B1 (which in turn is formatting A1):
You are making this way too complicated. Just use the DATE(year,month,day) function and switch the DAY() and YEAR() inside it.
If in cell A1 you have a European-style date in this format: 12-04-2017; Excel will interpret this as Dec 4, 2017.
Excel will interpret it properly as Apr 12, 2017 if you change it to the American-style of 04-22-2017 by writing this equation in another cell: "=DATE(YEAR(A1),DAY(A1),MONTH(A1))".
(I put the DAY() in the month spot and the MONTH() in the day spot.)
Now you can use any date format you want.
I use 'substitute' to replace the '.' with a '/'.
Then use the date format to get the correct format.
I have some dates in a column in Excel displayed as:
"14-Dec" "14-Jul" etc
and in the formula bar showing as 12/14/2015, 7/14/2015.
The date is supposed to be 2014-Dec and 2014-Jul.
Is there a way in which I can change it to 2014-12-01?
Use a custom format of:
yyyy-mm"-01"
I have dates in CSV like this
2015-08-04 10:09:25.940
Default Excel representation of this value is
09:25.9
Could you please provide exact steps to force Excel to show something sane?
Right Clic: Format Cell :
Custom: "dd/mm/yyyy hh:mm:ss.000"