Forum Discussion
Change date format.
Hi.
I struggle getting the date format change.
If there stay 2020.03.20 in A1 anf i mark A1, and change the format from yyyy.mm.dd to dd.mm.yyy A1 do not change. Still it stay 2020.03.20 in stead for 20.03.2020.
I use this command in a macro where i mark all dates in a row and change the date format as i explained abowe.
Can someone help?
9 Replies
- Hello, let assume you want to change the date format from mm/dd/yyyy to dd/mm/yyyy or dd.mm.yyyy.
Yo can make the permanent change in the Control Panel of your system. To do that, kindly follow the steps below
1. Type in Control Panel
2. Under Clock and Region, click on change date, time or number formats
3. Click on Additional settings
4. Click on Date tab
5. In the Short date under Date Format, specify the date format you want i.e. dd/mm/yyyy
6. Click OK.
The above steps will permanently take effect on your system including on Excel - larsgunnar007Copper Contributor
Hi again and thanks for your answer
from;
Subodh_Tiwari_sktneer (Valued Contributor) mentioned you in a post! Join the conversation below:
First of all the common =ISNUMBER(A1), in Norwegian ERNUM (A1), returns #NAVN? probably (#NAME?), Not true or False.
When I tried the Function "Text to Colums" it work only when i tried a singel cell. With multiply cells.. -Excel returns "the function do not work in multiply cells".
So I'm still stuck to return that date format from yyyy.mm.dd to dd.mm.yyyy still.
Is there any more solutions to change multiply date cells?
The best from
Lars Gunnar
- Subodh_Tiwari_sktneerSilver Contributor
Can you please upload a sample workbook to see how your data is organized on the sheet?
You actually didn't reply the following question.
What date separator do you use as per your regional settings? Is it a dot (period)?
- larsgunnar007Copper Contributor
Of course.
I mark the Row green where I want do change the datoformat all-in-one operation. An put it in the attached macro.
Yes I separate with dot (.)
ExchangeConverter.xlsm Attached.
I'm exited to hear your solution.
Sincerely
Lars Gunnar
- Subodh_Tiwari_sktneerSilver Contributor
If changing the date format in A1 doesn't change the display format of the date in A1 that means the date in A1 looks like a date but in fact it is a date string.
Remember that Excel treats dates as real numbers and to check whether the date in A1 is a real date or not, put the formula =ISNUMBER(A1) in a blank cell. If the formula returns a True that means the A1 contains a real date but if the formula returns False, A1 contains a text string which looks like a date but not a real date.
What date separator do you use as per your regional settings? Is it a dot (period)?
If yes, select the date in A1, go to Data Tab --> Text to Columns --> click on Finish in the next step.
This would convert the date text string into a real date and then you can change the formatting of the date without an issue.