Formula: Countifs

jaime1182

New Member
Joined
Dec 11, 2007
Messages
49
Office Version
  1. 2013
Platform
  1. Windows
Hi guys

I'm trying to put together a countifs statement but am getting a little stuck.

I want the formula to calculate how many blanks are in the corresponding C column, if the value in the B column is 5.

I managed the first condition (to count how many 5s there are in B):
=COUNTIF(B2:B10,5)

However, I don't know how to then get it to test the next condition whereby of the cells with 5, how many have blanks cells next to them in column C.

Looking forward to anyone's reply.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Just another query. I did not consider this initially but have now realised that I need to check Column C for another factor.

Column C could either be blank or could have the value "Hold". I need to count both the blank and the Hold ones.

I tried to use OR but ended up with a "You've entered too few arguments for this function".
=COUNTIFS(B2:B10,5,OR(C2:C10="",C2:C10="Hold"))

What is wrong with my statement?
 
Upvote 0

Book1
BCDEF
1
25HoldAnswer2
36d
42d
53
65
76
89
95f
106
11
Sheet7
Cell Formulas
RangeFormula
F2{=SUM(COUNTIFS(B2:B10,5,C2:C10,{"","Hold"}))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,213,506
Messages
6,114,027
Members
448,543
Latest member
MartinLarkin

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