Conditional Formatting Question less than greater than

mcintoshmc

Active Member
Joined
Aug 10, 2007
Messages
277
I'm currently using this formula to format the cell red

SUM($R4+$Y4<4)

It's working fine, but unused rows will have a value of zero, and it's formatting every row on the sheet red because zero is less than 4. Can I do less than 4, but greater than zero?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
mcintoshmc, Good evening.

Try to use:

=AND(SUM($R4+$Y4)>0, SUM($R4+$Y4)<4)

Please, tell us if it worked as you want.

I hope it helps.
 
Last edited:
Upvote 0
The SUM is unnecessary and redundant since you are also using the addition (plus) sign. You only need one or the other, not both.
So you can simplify to:
Code:
[COLOR=#333333]=AND(($R4+$Y4)>0, ($R4+$Y4)<4)[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,598
Members
449,089
Latest member
Motoracer88

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