Displaying a 1 in conditional formatting rules

Stef9910

Board Regular
Joined
Nov 2, 2022
Messages
72
Office Version
  1. 2010
Platform
  1. Windows
Hello all,

I have received some fantastic help from awoohaw, PeteWright and fluff in recent days and one more problem to conquer.

Is it possible to add to the conditional format rules, =AND(N$62>=$B64,N$62<=$D64,ISNUMBER($B64)) to have the number 1 appear in the cells?

This is so I can total the number cells that display the number 1 throughout the spreadsheet.

Your help will be greatly received.

Thank you

Stefan
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
You can't use CF for that. You'll need an extra column with a formula like
Excel Formula:
=--(AND(N$62>=$B64,N$62<=$D64,ISNUMBER($B64)))
 
Upvote 0
You can't use CF for that. You'll need an extra column with a formula like
Excel Formula:
=--(AND(N$62>=$B64,N$62<=$D64,ISNUMBER($B64)))
Thanks arthurbr, is there a way to count the cells that are colored by the conditional formatting, there are two colors, green and red?
 
Upvote 0
is there a way to count the cells that are colored by the conditional formatting, there are two colors, green and red?
It can depend on how the conditional formatting is applied, but you would normally use the same conditions for the count as for the conditional formatting.
What are the two conditional formatting rules for the green and the red?
 
Upvote 0
It can depend on how the conditional formatting is applied, but you would normally use the same conditions for the count as for the conditional formatting.
What are the two conditional formatting rules for the green and the red?
Thanks for reply Peter, there are actually three rules, but only two colors,

=AND(X$13>=$N15,X$13<=$P15) displays a green cell
=AND(X$13>=$L15,X$13<=$N15,ISNUMBER($L15)) displays a red cell
=AND(X$13>=$L15,X$13<=$R15,ISNUMBER($L15)) displays a red cell
 
Upvote 0
The "red" condition can be trimmed down to
Excel Formula:
=AND(X$13>=$L15,OR(X$13<=$N15,X$13<=$R15),ISNUMBER($L15))
 
Upvote 0
Thanks for reply Peter, there are actually three rules, but only two colors,

=AND(X$13>=$N15,X$13<=$P15) displays a green cell
=AND(X$13>=$L15,X$13<=$N15,ISNUMBER($L15)) displays a red cell
=AND(X$13>=$L15,X$13<=$R15,ISNUMBER($L15)) displays a red cell
And what range are those conditional formatting rules applied to?
In other word, what range are you trying to count the conditional formatted green and red cells in?
 
Upvote 0
And what range are those conditional formatting rules applied to?
In other word, what range are you trying to count the conditional formatted green and red cells in?
The range I have in the rules is X15 to BF157 (=$X$15:$BF$157)

Thank you for your help Peter
 
Upvote 0
Are you interested in post #6?
Thank you for your reply arthurbr, the "red" rules I have work well, and I will be trying your formula, the only reason I have two red rules is because of multiple start and end dates i have in the workbook.

Thank you for your help, I am learning so much from everyone's advice.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,322
Members
452,635
Latest member
laura12345

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