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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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,214,641
Messages
6,120,692
Members
448,979
Latest member
DET4492

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