Conditional Formatting Formula With Formula-driven Returned Values

G00DNESS

Board Regular
Joined
Aug 6, 2014
Messages
60
Using Excel 2003, I am trying to use a conditional formatting formula so that if the (formula-driven returned value) in Cell A7 minus the count of formula-driven cells in Range C7:C9 that return "X" is greater than 5 the font color will equal red. I used this formula that does not work: =SUM(A7-COUNTIF(C7:C9,"X")>5) :confused:

Thanks in advance for any resolve!
 
If A7 is blank, this statement cannot be true:
Code:
=(A7-COUNTIF(C7:C9,"X"))>5
as zero minus anything is less than 5, so your Conditional Formatting Criteria will be false and not apply your Conditional Formatting.


Are you really intending to subtract the counts from cells from C7 to C9 from a date? That sounds rather odd to me.

My apologies! I did that wrong. A7 is not blank. The returned value is 6, and the formula within it is =COUNTA(B7:B9)
 
Last edited by a moderator:
Upvote 0

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
So, if you enter this formula somewhere on your sheet for testing purposes, what does it return?

=(A7-COUNTIF(C7:C9,"X"))
 
Upvote 0
That sheet is screwed up. I'm using a corrected sheet now to handle the X by row. It is now A27 and C27:C50

So to correct this, I am trying to use a conditional formatting formula so that if the (formula-driven returned value) in Cell A27 minus the count of formula-driven cells in Range C27:C50 that return "X" is greater than 5 the font color will equal red.
 
Upvote 0
If A7 is blank, this statement cannot be true:
Code:
=(A7-COUNTIF(C7:C9,"X"))>5
as zero minus anything is less than 5, so your Conditional Formatting Criteria will be false and not apply your Conditional Formatting.


Are you really intending to subtract the counts from cells from C7 to C9 from a date? That sounds rather odd to me.

I am intending to subtract the counts from cells C27:C50 from the number of dates that are returned in A27. I had to make a new sheet because the first one sucked. I am actually trying to use a conditional formatting formula for Cell A30 so that if the (formula-driven returned value) in Cell A27 minus the count of the formula-driven cells in Range C27:C50 that return "X" is greater than 5 the font color will equal red. This is so frustrating for me.
 
Upvote 0
One of the best ways of debugging is to actually test out your formulas to see what they return before using them in your conditional formatting formula.
So what does the following formula return?
=A27-COUNTIF(C27:C50)
 
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,730
Members
449,465
Latest member
TAKLAM

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