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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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