COUNT IF non blank

Glacombe

Board Regular
Joined
Oct 31, 2018
Messages
101
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I have a formula that counts the amount of people for a certain range. The columns and rows are for example, C6:C9,F6:F9,I6:I9,L6:L9,O6:O9, and all those cells have already a formula. I would like to add only those with data in it and not the blanks. Right now it counts the cells with the formula also, even though the cell is blank.

So what would the formula would be?

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
What is the formula in the cells?
This is the formula in all the cells
=IFERROR(INDEX('List of Ex1-5'!$B$2:$B$136,AGGREGATE(15,6,(ROW('List of Ex1-5'!$B$2:$B$136)-ROW('List of Ex1-5'! and the formula to count the results is

=COUNTA(C6:C9,F6:F9,I6:I9,L6:L9,O6:O9,R6:R9,U6:U9,X6:X9,AA6:AA9,AD6:AD9)
 
Upvote 0
Oops so sorry, the second line was hidden, here it is

=IFERROR(INDEX('List of Ex1-5'!$B$2:$B$136,AGGREGATE(15,6,(ROW('List of Ex1-5'!$B$2:$B$136)-ROW('List of Ex1-5'!$B$2)+1)/('List of Ex1-5'!$A$2:$A$136="CMB")/('List of Ex1-5'!$D$2:$D$136="EX-03"),ROWS(A$1:A1))),"")
 
Upvote 0
Did you try COUNT without "A" instead?

Excel Formula:
=COUNT(C6:C9,F6:F9,I6:I9,L6:L9,O6:O9,R6:R9,U6:U9,X6:X9,AA6:AA9,AD6:AD9)
 
Upvote 0
How about:

Excel Formula:
=SUMPRODUCT((C6:AD9<>"")*(MOD(COLUMN(C6:AD9),3)=0))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,784
Messages
6,121,536
Members
449,037
Latest member
tmmotairi

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