countifs help

Flashboy

New Member
Joined
May 8, 2014
Messages
19
trying to do a countifs that keeps returning 0 when I know there should be a count of 11.

This is the formula I'm using, I need to be able to put the individual criteria in such as BVH111 just not sure if I'm doing it right? any help would be great.

=COUNTIFS(Data!$CA:$CA,'NS Dashboard'!D5,Data!$H:$H,BVH151+BVH152+BVH153+BVH154+BVH155+BVH156+BVH157+BVH161+BVH162+BVH162+BVH163+BVH164+BVH165+BVH166+BVH167)
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
The way that formula is writtin, it will first ADD the values in each of those cells (BVH151 through BVH167)
Say those add up to 35 or whatever.
Then 35 becomes the criteria it searches column H for
=COUNTIFS(Data!$CA:$CA,'NS Dashboard'!D5,Data!$H:$H,BVH151+BVH152+BVH153+BVH154+BVH155+BVH156+BVH157+BVH161+BVH162+BVH162+BVH163+BVH164+BVH165+BVH1 66+BVH167)
=COUNTIFS(Data!$CA:$CA,'NS Dashboard'!D5,Data!$H:$H,35)

Is that what you're intending it to do?

Or are you trying to have an OR criteria for column H
Count if Column H = BVH151 OR BVH152 OR BVH153 etc.. ??

For that you would do
=SUMPORODUCT(COUNTIFS(Data!$CA:$CA,'NS Dashboard'!D5,Data!$H:$H,$BVH$151:$BVH$167))
 
Upvote 0
What I was trying to do is count if it find all of the BVH numbers stated above. as there are 100's more but I just want them to be included if that makes sense?
 
Upvote 0
Yea didn't work at first but then spotted why, had an extra O in sumproduct :). Thanks Your a star!
 
Upvote 0

Forum statistics

Threads
1,214,958
Messages
6,122,475
Members
449,087
Latest member
RExcelSearch

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