COUNTIF Formula String

Radiatedjay2

New Member
Joined
Oct 7, 2018
Messages
8
The formula string below currently counts the number of supervisors scheduled to work based on specific entries in three cells. Certain entries add to the count and certain entries subtract from the count.

=COUNTIF(KI4:KI6,"*N*")+COUNTIF(KI4:KI6,"PHY")+COUNTIF(KI4:KI6,"TRD")+COUNTIF(KI4:KI6,"MT")+COUNTIF(KI4:KI6,"*D*")-COUNTIF(KI4:KI6,"DC")-COUNTIF(KI4:KI6,"XD")-COUNTIF(KI4:KI6,"XN")

What I need it to do is subtract 1 from the total if the total is => 3. How would I modify this formula to accomplish that.
 
Using Microsoft 365 for Enterprise

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,224,812
Messages
6,181,104
Members
453,021
Latest member
Justyna P

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