Stop excel auto formating dates!

doriannjeshi

Board Regular
Joined
Apr 5, 2015
Messages
214
Office Version
  1. 2019
Platform
  1. Windows
Hello,

Is there a way to stop excel stop converting 10-5 , 7-5 etc to dates like 5-Oct , 5-May

And if it got converted to date how to revert back to normal format

Thank you!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Pre-format the column to "Text" before entering the value in the cell, and it will not convert it to a date.

To convert existing ones back, you can use this formula:
Excel Formula:
=TEXT(A1,"m-d")
 
Upvote 0
Thank you for the solution!
To be more specific in a column I need also to have the conversion back hapen only to dates not regular numbers like 9 , 2 etc
 
Upvote 0
To be more specific in a column I need also to have the conversion back hapen only to dates not regular numbers like 9 , 2 etc
The issue is that Excel actually stores dates as number (specifically, the number of days since 1/0/1900).
So dates are really just numbers in Excel with special date formats.

However, actual numbers will probably be low, while "date" numbers will be high (enter any date in an Excel cell and change the format to General to see it as Excel does).
So, maybe check for high numbers, i.e.
Excel Formula:
=IF(A1>40000,TEXT(A1,"m-d"),TEXT(A1,"0"))
 
Upvote 0
Solution
You are welcome.
 
Upvote 0

Forum statistics

Threads
1,216,152
Messages
6,129,168
Members
449,490
Latest member
TheSliink

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