# Subtracting CountIF from CountIF

#### Tgirl22

##### New Member
New to all of this so please bare w/me..
I am trying to write a formula and I think CountIF is the right one to use, but I am stuck.
Basically I am wanting the formula to count how many items there are after filtering on 3 columns.

In column T there are 169 items that are true and I used this formula - =countif(Deliverables!T:T,"TRUE")
But of those 163 I need to remove in column H anything that says DBA or Data Support.

How do I do this?
Thanks!!!

### Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use \$ signs: \$V\$2:\$Z\$99 will always point to V2:Z99, even after copying

##### Well-known Member
Check out the COUNTIFS forumla.
=COUNTIF(Deliverables!T:T, TRUE)-COUNTIFS(Deliverables!T:T, TRUE, Deliverables!H:H, "DBA")-COUNTIFS(Deliverables!T:T, TRUE, Deliverables!H:H, "Data Support")

Welcome to the board

/AJ

#### Momentman

##### Well-known Member
WELCOME TO THE FORUM

What of a countifs

=COUNTIFS(Deliverables!T:T,"TRUE",Deliverables!H:H,"<DBA",Deliverables!,"<>Data Support")

#### Tgirl22

##### New Member
Neither one of those formulas worked??

#### Momentman

##### Well-known Member
It's very likely we don't have a true picture of what your data looks like or what your request really is. Maybe if you could help with that

Replies
6
Views
71
Replies
11
Views
151
Replies
3
Views
701
Replies
3
Views
151
Replies
4
Views
127

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,477
Messages
5,831,904
Members
430,090
Latest member
bjonesh2o

### 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