Cell Formating with Conditions

tetschlagk

New Member
Joined
Sep 29, 2011
Messages
10
I am looking to use cell formatting as such: If the number is less than zero, then 0.0; if the number is greater than 999.99, then 999.99, otherwise pull leave the number as is. I have been able to get half way there with #,##0.0;"0.0" . This makes the negative numbers = 0.0 but still leaves anything larger than 999.99 in its original number (for example 1,572.2 should show 999.99). Any thoughts?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
For the >999.99 set the format to "999.99" (including quotes)

Not sure where the "999.9" should go in the customer cell format. "999.9";"0.0" just returns 999.9 for all positive numbers. I need anything greater than 999.9 to show 999.9. every other positive number to be its value.
 
Upvote 0
Apologies, I misread your op & thought you were using conditional formatting.
Tetra201's solution should do what you're after.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,212
Members
452,618
Latest member
Tam84

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