How to automatically update countifs formula with multiple conditions

Comrade Beckles

New Member
Joined
Nov 25, 2015
Messages
4
We have a register keeping track of all our counselling referrals and I need to keep track of numbers of unallocated patients based on differing sets of criteria, as below:

First name
Surname
Funding
Counsellor/status
Angus
Smith
Bolton
Franklin
Beaumont
Smith
Hitchcock
Cyrus
Smith
On hold
Dorian
Smith
Waitlist
Elgar
Smith
Hitchcock

<tbody>
</tbody>

Assuming as above are A, B, C,D I have COUNTIFS formulas set up for all my different requirements like so:

* patient's file is on hold - COUNTIF(D2:D5,"ON HOLD")
* patient is on the waitlist - COUNTIF(D2:D5,"WAITLIST")
* patient is not yet allocated, and is funded by Bolton - COUNTIFS(D2:D5,"",C2:C5,"Bolton")
* patient is not yet allocated, and is not funded by Bolton - COUNTIFS(D2:D5,"",C2:C5,"<>Bolton")

Each time I enter a new patient, I manually update all the formulas to indicate the new bottom row of data. To save some time (and make the register look a little more schmancy for any funding bodies who need a squizz), what's the easiest way to have the formula update automatically?

Thanks in advance
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try :

1] patient's file is on hold :

=COUNTIF(D2:INDEX(D:D,MATCH("zzzz",A:A)),"ON HOLD")

2] patient is on the waitlist :

=COUNTIF(D2:INDEX(D:D,MATCH("zzzz",A:A)),"WAITLIST")

3] patient is not yet allocated, and is funded by Bolton :

=COUNTIFS(D2:INDEX(D:D,MATCH("zzzz",A:A)),"",C2:INDEX(C:C,MATCH("zzzz",A:A)),"Bolton")

4] patient is not yet allocated, and is not funded by Bolton :

=COUNTIFS(D2:INDEX(D:D,MATCH("zzzz",A:A)),"",C2:INDEX(C:C,MATCH("zzzz",A:A)),"<>Bolton")

Regards
 
Upvote 0

Forum statistics

Threads
1,215,356
Messages
6,124,475
Members
449,164
Latest member
Monchichi

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