Countif for 2 things - once per name and then + 1 each time it sees a word "all"

IsabellaLearning

Board Regular
Joined
May 23, 2009
Messages
115
Currently I am counting how many outstanding tasks there are for each team member as per:
=COUNTIF('Outstanding'!C:C,I3)

All outstanding tasks are in a tab called outstanding with the names of the people in column C and in Column "i" in a separate sheet have the sheet with the tallys

If all works fine but I also now want that then in column see the word "ALL" appears it also counts as "1" more task to each individual - does that make sence? Currently countif is counting how many times each name appears, i also want it to add "1" more each time the work "all" is in the column

thankyou
Isabella
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Steph77

Board Regular
Joined
Sep 18, 2014
Messages
119
Try:

=COUNTIF('Outstanding'!C:C,I3)+COUNTIF('Outstanding'!C:C,"ALL")
 

ztodd

Board Regular
Joined
Sep 17, 2014
Messages
221
You want to look for the word "all" in which column? Sounds like you just need to add the result from another COUNTIF, like this- COUNTIF('Outstanding'!C:C,I3)+COUNTIF(...fill in what you need here...)

You can do pattern matching with the COUNTIF. Put your cursor on the COUNTIF and press F1 to see how.

Guess I was too slow. and I guess I misunderstood you anyway.
 
Last edited:
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,487
Messages
5,831,978
Members
430,099
Latest member
rdhoy

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
Top