Countifs not working

Caitlin535

New Member
Joined
Jan 8, 2016
Messages
21
I feel like a crazy person - I should be able to figure this out. I have a schedule of groups set up like the attached picture. I want the table at the bottom to tell me for each unit (D3B, D4B, etc.) how many groups are run by each discipline - Psychology, Psychiatry, Rehab, etc.
I'm trying to use Countifs to count up cells that a) have the correct unit in column B, and then have the correct discipline. I tried =COUNTIFS($B3:$B22,C26,$B$3:$L$22,D$25), but I know I'm doing something wrong because it gives the #value error. I woudl really appreciate if anyone has a suggestion - again, I apologize for having to ask something that seems so simple!
 

Attachments

  • Groups.png
    Groups.png
    181.9 KB · Views: 20

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
The Countif's won't work on non-contiguous ranges. The workaround is to sum the rows.
So for the first one it would be:
Excel Formula:
=COUNTIF($C3:$L3,$D$25)+COUNTIF($C10:$L10,$D$25)+COUNTIF($C17:$L17,$D$25)
You can pull that straight down and fill the column since the list and cable are in the same order.
 
Upvote 0

Forum statistics

Threads
1,215,042
Messages
6,122,810
Members
449,095
Latest member
m_smith_solihull

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