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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
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
 
Upvote 0
Solution
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);)
 
Upvote 0
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’)
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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