Countif

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
657
Office Version
  1. 2019
Platform
  1. Windows
Hello,

CountIfs = D:D="W", $AM4="Yes", $AS4=$AW4
All 3 have to be true to count of 1.
Range = AM4:AM35

Cell Formulas
RangeFormula
AB4:AB13AB4=IFERROR(VLOOKUP($A4,'NFL Standing'!$A$2:$M$43,13,0),"")
AN4:AN13AN4=IFERROR(VLOOKUP($A4,Passing!$A$2:$V$33,22,0),"")
AO4,AO12,AO10,AO8,AO6AO4=IF(AN4>AN5,AN4-AN5,"")
AP4:AP13AP4=IFERROR(VLOOKUP($A4,Passing!$A$2:$M$33,13,0),"")
AQ4,AQ12,AQ10,AQ8,AQ6AQ4=IF(AP4<AP5,"Yes","")
AR4,AR12,AR10,AR8,AR6AR4=COUNTIF(AN4,">"&AN5)+COUNTIF(AP4,"<"&AP5)
AS4,AS12,AS10,AS8,AS6AS4=IF($AR4>$AR5,$A4,IF($AR4=$AR5,"Tie",""))
AT4:AT5AT4=IFERROR(VLOOKUP($A4,'2020 Standings'!$A$2:$K$33,11,0),"")
AU4:AU13AU4=VLOOKUP($A4,'2020 Standings'!$A$2:$L$33,12,0)
AV4,AV12,AV10,AV8,AV6AV4=COUNTIF(W4,">"&W5)+COUNTIF(X4,">"&X5)+COUNTIF(Y4,">"&Y5)+COUNTIF(Z4,">"&Z5)+COUNTIF(AA4,">"&AA5)+COUNTIF(AB4,">"&AB5)
AW4,AW12,AW10,AW8,AW6AW4=IF($AV4>$AV5,$A4,IF($AV4=$AV5,"Tie",""))
AX4:AX13AX4=$A4
AO5,AO13,AO11,AO9,AO7AO5=IF(AN5>AN4,AN5-AN4,"")
AQ5,AQ13,AQ11,AQ9,AQ7AQ5=IF(AP5<AP4,"Yes","")
AR5,AR13,AR11,AR9,AR7AR5=COUNTIF(AN5,">"&AN4)+COUNTIF(AP5,"<"&AP4)
AS5,AW13,AS13,AW11,AS11,AW9,AS9,AW7,AS7,AW5AS5=IF(AR5>AR4,$A5,IF(AR4=AR5,"Tie",""))
AV5,AV13,AV11,AV9,AV7AV5=COUNTIF(W5,">"&W4)+COUNTIF(X5,">"&X4)+COUNTIF(Y5,">"&Y4)+COUNTIF(Z5,">"&Z4)+COUNTIF(AA5,">"&AA4)+COUNTIF(AB5,">"&AB4)
AT6:AT13AT6=VLOOKUP($A6,'2020 Standings'!$A$2:$K$33,11,0)
AM4:AM12AM4=IF(AND((N($B4)<0),($X4>N($B4)*-1)),"Yes", "")
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hello,

CountIfs = D:D="W", $AM4="Yes", $AS4=$AW4
All 3 have to be true to count of 1.
Range = AM4:AM35

Cell Formulas
RangeFormula
AB4:AB13AB4=IFERROR(VLOOKUP($A4,'NFL Standing'!$A$2:$M$43,13,0),"")
AN4:AN13AN4=IFERROR(VLOOKUP($A4,Passing!$A$2:$V$33,22,0),"")
AO4,AO12,AO10,AO8,AO6AO4=IF(AN4>AN5,AN4-AN5,"")
AP4:AP13AP4=IFERROR(VLOOKUP($A4,Passing!$A$2:$M$33,13,0),"")
AQ4,AQ12,AQ10,AQ8,AQ6AQ4=IF(AP4<AP5,"Yes","")
AR4,AR12,AR10,AR8,AR6AR4=COUNTIF(AN4,">"&AN5)+COUNTIF(AP4,"<"&AP5)
AS4,AS12,AS10,AS8,AS6AS4=IF($AR4>$AR5,$A4,IF($AR4=$AR5,"Tie",""))
AT4:AT5AT4=IFERROR(VLOOKUP($A4,'2020 Standings'!$A$2:$K$33,11,0),"")
AU4:AU13AU4=VLOOKUP($A4,'2020 Standings'!$A$2:$L$33,12,0)
AV4,AV12,AV10,AV8,AV6AV4=COUNTIF(W4,">"&W5)+COUNTIF(X4,">"&X5)+COUNTIF(Y4,">"&Y5)+COUNTIF(Z4,">"&Z5)+COUNTIF(AA4,">"&AA5)+COUNTIF(AB4,">"&AB5)
AW4,AW12,AW10,AW8,AW6AW4=IF($AV4>$AV5,$A4,IF($AV4=$AV5,"Tie",""))
AX4:AX13AX4=$A4
AO5,AO13,AO11,AO9,AO7AO5=IF(AN5>AN4,AN5-AN4,"")
AQ5,AQ13,AQ11,AQ9,AQ7AQ5=IF(AP5<AP4,"Yes","")
AR5,AR13,AR11,AR9,AR7AR5=COUNTIF(AN5,">"&AN4)+COUNTIF(AP5,"<"&AP4)
AS5,AW13,AS13,AW11,AS11,AW9,AS9,AW7,AS7,AW5AS5=IF(AR5>AR4,$A5,IF(AR4=AR5,"Tie",""))
AV5,AV13,AV11,AV9,AV7AV5=COUNTIF(W5,">"&W4)+COUNTIF(X5,">"&X4)+COUNTIF(Y5,">"&Y4)+COUNTIF(Z5,">"&Z4)+COUNTIF(AA5,">"&AA4)+COUNTIF(AB5,">"&AB4)
AT6:AT13AT6=VLOOKUP($A6,'2020 Standings'!$A$2:$K$33,11,0)
AM4:AM12AM4=IF(AND((N($B4)<0),($X4>N($B4)*-1)),"Yes", "")
I found the solution using SUMPRODUCT.
Excel Formula:
=SUMPRODUCT((AS4:AS35=AW4:AW35)*(AM4:AM35="Yes")*(D4:D35="W"))
 
Last edited by a moderator:
Upvote 0
Solution

Forum statistics

Threads
1,214,960
Messages
6,122,479
Members
449,088
Latest member
Melvetica

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