Counting number of rows if at least one instance appears in one of three columns

JustyR

New Member
Joined
Nov 19, 2004
Messages
45
Hi, all,

Hoping someone can help me solve this.

I have a spreadsheet with four columns (columns are sessions). The rows are weeks. So, I'm using a bullet point to indicate when I've attended any one of up to four sessions in each week.

A B C D
1 • x x x
2 x • • x
3 x • x x
4 x x x x

I want to be able to count the number of rows that have at least one bullet point in A, B, C, or D.

So the formula would return a result of 3.

Is this possible?

Many thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Are the x's really x's, or do they represent something else?
Whatever they are, will they always be the same (equal to each other) if they are not a bullet point?
 
Upvote 0
Assuming you did not "lie" to us about the total number of columns, this formula should work for you ...

=SUMPRODUCT(--ISNUMBER((FIND("•",A1:A4&B1:B4&C1:C4&D1:D4))))
 
Upvote 0
Assuming you did not "lie" to us about the total number of columns, this formula should work for you ...

=SUMPRODUCT(--ISNUMBER((FIND("•",A1:A4&B1:B4&C1:C4&D1:D4))))

That's the ticket!!!

Excellent. I was flailing around with countifs and wouldn't have got that. Many thanks. Works perfectly.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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