CountIF Formula including invisible cells

rjferrani22

New Member
Joined
Mar 28, 2016
Messages
1
Hi,

I'm trying to analyze data from a survey where we assign a point value to each response and then average the scores for each demographic. I'm running into a problem when I start to filter the data based on location/role of the user. I'm using a countif formula to count the number of responses that meet a certain criteria, but when I filter to only view the North for example, the formula is still including responses from the other regions. Is there a way to make excel only count the visible cells? Or should I use a different formula?

Here's the formula I'm using if this will help: =(COUNTIF('Data with Point Values'!N$7:N$34,$C$3))*(VLOOKUP($C$3,'Data with Point Values'!$J$1:$K$3,2,FALSE))

Thanks in advance!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Which version of Excel are you using?

If XL2007+ try adding a helper column say column O
IN O7 and filled down to O34 put
=SUBTOTAL(103,N7)

Then use
=COUNTIFS('Data with Point Values'!N$7:N$34,$C$3,'Data with Point Values'!O$7:O$34,1)*VLOOKUP($C$3,'Data with Point Values'!$J$1:$K$3,2,FALSE)
 
Upvote 0

Forum statistics

Threads
1,216,105
Messages
6,128,859
Members
449,472
Latest member
ebc9

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