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

#### IsabellaLearning

##### Board Regular
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
Try:

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

#### ztodd

##### Board Regular
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:

#### IsabellaLearning

##### Board Regular
Thankyou ztodd, i really appreciate your help, too much feedback is never enough

#### IsabellaLearning

##### Board Regular
Steph! right on the money thankyou so much im up and away now!
very much appreciated

Replies
11
Views
515
Replies
3
Views
302
Replies
2
Views
224
Replies
6
Views
309
Replies
9
Views
393

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.

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.

### Which adblocker are you using?

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

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