Excel Custom formats with conditions

saboh12617

Board Regular
Joined
May 31, 2024
Messages
80
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,
I'm a bit new to number formats and i discovered today you can apply conditions on the value of the cell to modify it's format directly in the "custom" format formula.
However it seems i am doing something wrong because, as an example, this works :
[Blue][<1000000]0;[Green][<1000000000000]0;[Red]0
But if i add a 4th condition like this, it does not work anymore
[Yellow][<1000];[Blue][<1000000]0;[Green][<1000000000000]0;[Red]0
Is it related to the 4 cases (between ";") of the formula?

In this case i guess, as suggested in this excellent article (Custom Excel number format), it is better to use conditional formats, but i wanted to understand why i was getting an error at the 4th condition ?

Thank you for your time
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
it seems this is the case (as stated here):
To apply more than two conditions, or to change other cell attributes, like fill color, etc. you'll need to switch to [URL='https://exceljet.net/conditional-formatting-formulas']Conditional Formatting[/URL], which can apply formatting with much more power and flexibility using formulas.
 
Upvote 0
it seems this is the case (as stated here):
To apply more than two conditions, or to change other cell attributes, like fill color, etc. you'll need to switch to [URL='https://exceljet.net/conditional-formatting-formulas']Conditional Formatting[/URL], which can apply formatting with much more power and flexibility using formulas.
Thank you very much, i did not see this hint on the website i mentioned. I pass the topic in Solved.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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