How to change a date format back to a decimal in excel?

%3CLINGO-SUB%20id%3D%22lingo-sub-975817%22%20slang%3D%22en-US%22%3EHow%20to%20change%20a%20date%20format%20back%20to%20a%20decimal%20in%20excel%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-975817%22%20slang%3D%22en-US%22%3E%3CP%3EI%20opened%20an%20old%20excel%20spreadsheet%20populated%20with%20many%20data%20entries%20that%20were%20originally%20in%20a%20decimal%20format%20with%201%20decimal%20place%20e.g%204.5%26nbsp%3B%20but%20I%20found%20that%20they%20have%20all%20been%20converted%20to%20a%20d-mmm%20date%20format.%20i.e.%204-May%26nbsp%3B%20I%20have%20tried%20many%20of%20the%20different%20number%20formats%20available%2C%20but%20can't%20get%20close%20to%20the%20original%20format.%20For%20instance%20Number%20format%20changes%204-May%20to%26nbsp%3B41763.00.%20Any%20ideas%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-975817%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-975961%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20change%20a%20date%20format%20back%20to%20a%20decimal%20in%20excel%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-975961%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F439131%22%20target%3D%22_blank%22%3E%40Tony_Curn%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20on%20a%20Mac%20and%20when%20I%20choose%20to%20format%20a%20date%20I%20can%20select%20the%20region%20%22Alsatian%20(France)%22.%20It%20will%20show%20the%20decimal%20format%20as%20one%20of%20the%20standard%20options.%20If%20you%20don't%20have%20these%20you%20might%20try%20a%20custom%20format%20%22d.m%3B%40%22.%20I've%20attached%20some%20screen%20shots%20that%20show%20you%20what%20I%20mean.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-976879%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20change%20a%20date%20format%20back%20to%20a%20decimal%20in%20excel%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-976879%22%20slang%3D%22en-US%22%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20I%20get%20your%20question%20accurately%2C%20you%20want%20to%20change%20date%20from%20decimal%20to%20proper%20date%20format.%20If%20that's%20what%20you%20meant%2C%20kindly%20execute%20CTRL%20%2B%201%20on%20the%20date%20column%20of%20your%20data.%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20the%20Format%20Cell%20dialogue%20box%2C%20you%20can%20select%20desired%20date%20format%3C%2FLINGO-BODY%3E
Occasional Visitor

I opened an old excel spreadsheet populated with many data entries that were originally in a decimal format with 1 decimal place e.g 4.5  but I found that they have all been converted to a d-mmm date format. i.e. 4-May  I have tried many of the different number formats available, but can't get close to the original format. For instance Number format changes 4-May to 41763.00. Any ideas?

5 Replies

@Tony_Curn 

 

I'm on a Mac and when I choose to format a date I can select the region "Alsatian (France)". It will show the decimal format as one of the standard options. If you don't have these you might try a custom format "d.m;@". I've attached some screen shots that show you what I mean.

Hello,

If I get your question accurately, you want to change date from decimal to proper date format. If that's what you meant, kindly execute CTRL + 1 on the date column of your data.

In the Format Cell dialogue box, you can select desired date format

Hi, @Abiola1 

I don't think @Tony_Curn had this in mind.

 

It's that somebody sends you an excel file, let's say with mater data. On original computer, the data is in decimal values.

I receive it via email. I open it on my computer. And certain decimal values are ''automatically'' changed to arbitrary dates. Now, if I format it back to numbers, the numbers are not the same anymore. 

e.g: 1.5 ---> May first (or June 5th, depends on the will of excel at that time), and then convert back to number, you get something like 412381. 

1.5 =! 412381

That's the problem here.

@Tony_Curn 

The process has some things in common with unscrambling eggs!

Once you identify that Excel has misread the data input, you can take steps to reverse the process.  The day and month can be separated using

DAY(data)
MONTH(data)/10

and then treated as the integer and decimal parts of a number using the appropriate formula

= DAY(data)+MONTH(data)/10
or
= DAY(data)+MONTH(data)/10^LEN(MONTH(data))

the later dealing with months Oct-Dec.

Another solution that could work given computer settings other than those that messed up the data in the first place would be

=--TEXT(data,"d.m")

 

Thank you @Peter Bartholomew for your reply. This has actually worked. In some cases I needed to do some additional magic, but it would not have worked without your initial input.

Not to mention the burst of laughter brought on by your 'unscrambling eggs' comparison, which is the most precise way to describe this problem.

Thank you again!