Conditional COUNTIF() on a whole row

stonypaul

Board Regular
Joined
Jan 4, 2008
Messages
86
Greetings, I have a worksheet with 737 columns; A1:ABI64 - below is a small representation of it. In cells B11:B18 I want to add a formula to reference the person in column A and count the 0's for that person, in the range A1:ABI64. What is the best way of doing this please? I have tried arrayformula() sumproduct() and a combination of sum() and lookup() but to no avail. Thank you.

ABCDEFG
1Brad100211
2Brandon546657
3Brian067178
4Chris9751086
5Clement007118
6Dale1092110
7Dan8299310
8Dario030141
9
10
11Brad
12Brandon
13Brian
14Chris
15Clement
16Dale
17Dan
18Dario
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

However, see if this is what you want.

20 12 17.xlsm
ABCDEFG
1
2Brad100211
3Brandon546657
4Brian067178
5Chris9751086
6Clement007118
7Dale1092110
8Dan8299310
9Dario030141
10
11
12Brad2
13Brandon0
14Brian1
15Chris0
16Clement2
17Dale1
18Dan0
19Dario2
Count Zero
Cell Formulas
RangeFormula
B12:B19B12=COUNTIF(INDEX(B$2:G$9,MATCH(A12,A$2:A$9,0),0),0)
 
Upvote 0
I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

However, see if this is what you want.

Thank you, that works like a charm
 
Upvote 0
You're welcome. Glad it worked for you. :)

What about the Account details update? ;)
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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