Excel formula to count number of cells with fill color that contain text, and number of cells with no fill that do not contain text

The attached spreadsheet uses conditional formatting to guide the data entry clerk in filling it out properly.

Column H and Column I have conditional formatting as follows:

If Column F includes the word 'YES', then all subsequent columns should be completed (cells have no fill color)
If Column F includes the word 'NO', then conditional formatting then changes cell color in Col H and I to orange, indicating to the user that these cells should not be filled out.

At the end of the production cycle, I would like to review the data entry for errrors. Specifically:

Col H and Col I:
# of cells with no fill color that are blank (formula result should be 4 cells in Col H, 3 cells in Col I)
# of cells with fill color that are not blank (formula result should be 2 cells in Col H, 1 cell in Col I)

Thanks,
Andrea
EE_ColorCells.xlsx
AndreamaryAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ejgil HedegaardCommented:
# of cells with no fill color that are blank (formula result should be 4 cells in Col H, 3 cells in Col I)
H: =SUMPRODUCT((RIGHT($F$2:$F$24,3)="YES")*(H$2:H$24=""))
I: =SUMPRODUCT((RIGHT($F$2:$F$24,3)="YES")*(I$2:I$24=""))
# of cells with fill color that are not blank (formula result should be 2 cells in Col H, 1 cell in Col I)
H: =SUMPRODUCT((RIGHT($F$2:$F$24,2)="NO")*(H$2:H$24<>""))
i: =SUMPRODUCT((RIGHT($F$2:$F$24,2)="NO")*(I$2:I$24<>""))
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AndreamaryAuthor Commented:
Perfect! Thanks very much, Ejgil...

Andrea
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.