Show decimal point only if not a whole number

E

Exceler

I'd like to clean up the appearance of a spreadsheet by showing a
decimal point only if the value is not a whole number, as well as limit
the number of decimal places.

Conditional formatting allows formulas to specify a condition, such as
=A1=Int(A1), but I can't figure out how to specify a number format
(instead of a color) as a result.
 
M

Mallycat

Use the command Format\Cells\Number. To do what you want, you shoul
either select General format 0 which will give you exactly what i
typed, or alternatively 0.### with one hash for each decimal place yo
want to display

Mat
 
G

Guest

Right-click > FormatCells > NumberTab > Custom > 0.## in the Type: window >
Ok.........this will format to give a decimal point and no digits after for
whole numbers and one to two decimal places max for those numbers with
decimals.

hth
Vaya con Dios,
Chuck, CABGx3
 

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