how do I stop Excel taking decimal fractions as dates?

A

aa

sometimes when I enter decimal fractions Excel thinks this is a date. How do
I stop this?
 
R

Roger Govier

Hi

Insert a single quote before the fraction '3/4
The quote will not show up in the cell, but it will tell Excel to treat
the cell as Text.

Alternatively, Format>Cells>Number>Fractions
3/4 will display as 3/4 but will be stored as 0.75 and can be used in
further calculations.
 
G

Guest

If you mean that when you type something like 1/4 Excel converts it to 4-Jan,

Try this:
Pre-format the input cells to "Number"

From the Excel main menu:
<format><cells><number tab>
Category: Number
Click [OK]

Now, when you input fractions...they convert to decimal numbers
e.g. 1/4 becomes 0.25

(If the format was "General" Excel takes its best guess at what you meant.
In the case of fractions, dates often result.)

Does that help?
***********
Regards,
Ron

XL2002, WinXP
 
G

Guest

I forgot to mention....
if you want the fraction to remain a numeric fraction...

Either set the numeric format of the cell to "fraction"
OR
when entering the fraction, precede it with a zero and a space:
e.g. 0 1/4 would have a value of 0.25, but display as 1/4

***********
Regards,
Ron

XL2002, WinXP


Ron Coderre said:
If you mean that when you type something like 1/4 Excel converts it to 4-Jan,

Try this:
Pre-format the input cells to "Number"

From the Excel main menu:
<format><cells><number tab>
Category: Number
Click [OK]

Now, when you input fractions...they convert to decimal numbers
e.g. 1/4 becomes 0.25

(If the format was "General" Excel takes its best guess at what you meant.
In the case of fractions, dates often result.)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


aa said:
sometimes when I enter decimal fractions Excel thinks this is a date. How do
I stop this?
 
A

aa

Thanks.
I am talking about decimal fractions like 0.25 not 1/4
I am entering digits and therefore entering comma every time is a chore
Also how do I set this as a default in Excel once and forever so as when I
start Excel I do not need to do this formatting?
 
G

Guest

OK....now I need more details...

On my PC, if I type 0.25, that's exactly Excel puts in the cell and displays.

Exactly what to you type
and what does Excel convert it to?

***********
Regards,
Ron

XL2002, WinXP
 
A

aa

Hi, Ron, I think I now see what was the problem. On the computer I am using
the decimal separator is set to use comma (","). Therefore when I used dot,
it took it as a character string rather than a number.
Thanks for help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top