Format all 4 cells ONLY if all 4 cells are negative in value!

Ultimate Selector

Board Regular
Joined
Dec 15, 2013
Messages
153
I want to format 4 cells that are all negative in value. High lighting will only happen if all are (-) neg... If there is 1 positive number within the 4 then no format or highlighting can take place.

What would be the formula for this? ... Say using A1:D1?

Thanks in advance!


Here are my numbers ... These should all be high lighted but ONLY if all are neg.

-0.9-2%-5%-3%

Here is another example when no high lighting should take place because there is only 1 negative and 3 positive values.

0.7-3%1%4%
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

maabadi

Well-known Member
Joined
Oct 22, 2012
Messages
1,764
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Try This with Conditional Formatting, Manage Rule, New Rule, Use a formula, Input formula and Select
Format and then add format that you want for font and Fill Cell

Book1
ABCDE
1-0.9-2%-5%-3%
20.7-3%1%4%
3
4
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:D2Expression=AND($A1<0,$B1<0,$C1<0,$D1<0)textNO
 
Solution

Ultimate Selector

Board Regular
Joined
Dec 15, 2013
Messages
153
Try This with Conditional Formatting, Manage Rule, New Rule, Use a formula, Input formula and Select
Format and then add format that you want for font and Fill Cell

Book1
ABCDE
1-0.9-2%-5%-3%
20.7-3%1%4%
3
4
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:D2Expression=AND($A1<0,$B1<0,$C1<0,$D1<0)textNO
That's it! Thanks so much Maabadi! I wasn't using the AND ... Have a great morning! (y);)
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
48,444
Office Version
  1. 365
Platform
  1. Windows
Nothing wrong with the suggested formula, but a simpler one would be

21 01 27.xlsm
ABCD
1-0.9-0.02-0.05-0.03
20.7-0.030.010.04
CF
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:D2Expression=MAX($A1:$D1)<0textNO


BTW,
I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 

Watch MrExcel Video

Forum statistics

Threads
1,129,261
Messages
5,635,135
Members
416,842
Latest member
Ateen4ever

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
Top