COUNTIF Issues - Counting across columns

DSL1970

New Member
Joined
Jun 28, 2012
Messages
16
All,

I have struggling with a formula to use IF and AND. I have 3 columns in a table, Chain of Command 1, Chain of Command 2 and a Full Time/Part Time column. This list will be added to each week, so it will continue to grow.

Based on a preselected Leader I have been able to get a count of on many times a leader shows up in the list, but I haven't been able to determine how I only use this leader and determine how many are FT employees. This number can only be equal to or less than the count - which makes sense. So listed below I have the correct count formula, but struggling on getting the count of FT based on the leader (including my 40th attempt to get this to work!!!). Any help is appreciated

Which Leader?Count
LEADER 1=COUNTIF(A5:B24,A2)=COUNTIF(AND((A5:B24,A2), C5:C24="FT"),COUNTIF( C5:C24="FT"),"")
CHAIN OF COMMAND 1CHAIN OF COMMAND 2PT/FT
LEADER 1LEADER 19FT
LEADER 1LEADER 20FT
LEADER 1LEADER 21PT
LEADER 2LEADER 22FT
LEADER 3LEADER 23FT
LEADER 4LEADER 24FT
LEADER 5LEADER 25FT
LEADER 6LEADER 26FT
LEADER 7LEADER 27FT
LEADER 8LEADER 28FT
LEADER 9LEADER 29FT
LEADER 10LEADER 30FT
LEADER 11LEADER 31FT
LEADER 12LEADER 32FT
LEADER 13LEADER 33FT
LEADER 14LEADER 34FT
LEADER 15LEADER 35FT
LEADER 16LEADER 36FT
LEADER 17LEADER 37FT
LEADER 18LEADER 38FT

<tbody>
</tbody>
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
COUNTIFS


Book1
ABC
1LEADER 1FT2
2
3CHAIN OF COMMAND 1CHAIN OF COMMAND 2PT/FT
4LEADER 1LEADER 19FT
5LEADER 1LEADER 20FT
6LEADER 1LEADER 21PT
7LEADER 2LEADER 22FT
8LEADER 3LEADER 23FT
9LEADER 4LEADER 24FT
10LEADER 5LEADER 25FT
11LEADER 6LEADER 26FT
12LEADER 7LEADER 27FT
13LEADER 8LEADER 28FT
14LEADER 9LEADER 29FT
15LEADER 10LEADER 30FT
16LEADER 11LEADER 31FT
17LEADER 12LEADER 32FT
18LEADER 13LEADER 33FT
19LEADER 14LEADER 34FT
Sheet3
Cell Formulas
RangeFormula
C1=COUNTIFS($A$4:$A$23,$A$1,$C$4:$C$23,$B$1)
 
Upvote 0

Forum statistics

Threads
1,215,999
Messages
6,128,192
Members
449,431
Latest member
Taekwon

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