Count number of blank cells based on 2 conditions

raisedwell

New Member
Joined
Mar 4, 2010
Messages
22
I am working of a worksheet that returns the status of completion for a questionnaire that contains multiple categories that basically counts the number of empty cells for User Response, User Explanation, Mgr Approval and Mgr Notes. (Providing both the user and a manager with the number of unanswered cells that they have outstanding that must be completed. In the questionnaire the following columns are used.

RowA - Question number
RowB - Category
RowC - Question
RowD - Applicability
RowE - Rating

RowF - User Response
RowG - User Explanation
RowH - Mgr Approval
RowI - Mgr Notes


Although I have been successful in counting the blank cells for each category simply by using COUNTBLANK, I have run into a situation where the returned number of empty cells is based on 2 cell values. I need a formula that counts the number of empty cells G155 thru G197, unless F155 contains Yes, then only count the empty cell for G155 if it is not greater than 1.

Logic spelled out:
If cell F155 equals the word "Yes" AND cell G155 is less than 0 then return a value of 1, if G155 is greater than 0 then return 0, otherwise if F155 doesn't equal "Yes" then count the number of blank cells between G155 thru G197.

Examples:

Cell155 ValueCell G155 ValueThen Return
Less than 0Less than 0number of empty cells between G155:G197
Contains "Yes"Less than 0Count cell G155 as 1 empty cell
Contains "Yes"Greater than 0Return 0


Any help would be greatly appreciated.

Thanks in advance.
:)
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
How about
Excel Formula:
=IF(F155<>"Yes",COUNTBLANK(G155:G197),IF(G155>0,0,1))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,706
Messages
6,126,344
Members
449,311
Latest member
accessbob

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