Custom number format: decimals

D

David Hudson

I want to create a custom number format that eliminates
decimals when the number entered is a round number.
Examples:

-13.5 would show as (13.5)
-10 would show as (10)
1.25 would show as 1.3
3 would show as 3

Is this possible using custom number formats?
 
R

Ron Rosenfeld

I want to create a custom number format that eliminates
decimals when the number entered is a round number.
Examples:

-13.5 would show as (13.5)
-10 would show as (10)
1.25 would show as 1.3
3 would show as 3

Is this possible using custom number formats?

No it is not.

You would need to use an event-triggered macro that checks the relevant cells,
and the formats them appropriately depending on the contents.


--ron
 

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