adding .5 to existing Countif with Criteria

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
717
Office Version
  1. 2019
Platform
  1. Windows
Hello,
Looking to Count "W" and "L" (Z:Z), then add .5 for each "Psh" listed to each "W","L" (if "Psh" exists) in column (Z:Z), according to the Matching Team(AV:AV).
I've tried a formula (AW296), but its not working. I will copy the new formula to the entire range (AW:AW)
Results should be:
OKC = .5-1.5
MEM = 2.5-.5

Range where the Countif exists:

Cell Formulas
RangeFormula
AV285:AV307AV285=IFERROR(INDEX($H$3:$H$768,AGGREGATE(15,6,ROW($H$3:$H$768)-ROW($H$2)/($J$3:$J$768<=-10),ROW()-ROW($AV$284))),"")
AW297:AW307,AW285:AW295AW285=COUNTIFS($Y$290:$Y$769,AV285,$Z$290:$Z$769,"W")&"-"&COUNTIFS($Y$290:$Y$769,AV285,$Z$290:$Z$769,"L")
AX285:AX307AX285=IFERROR(LEFT(AW285,1)/(LEFT(AW285,1)+RIGHT(AW285,1)),"")
AW296AW296=COUNTIFS($Y$290:$Y$769,AV296,$Z$290:$Z$769,"W"+(COUNTIFS($Y$290:$Y$769,AV296,$Z$290:$Z$769,"PSH")/2)&"-"&COUNTIFS($Y$290:$Y$769,AV296,$Z$290:$Z$769,"L")*(COUNTIFS($Y$290:$Y$769,AV296,$Z$290:$Z$769,"PSH")/2))


Here is the Range we are Counting

Cell Formulas
RangeFormula
Y290:Y313Y290=IFERROR(INDEX($H$3:$H$768,AGGREGATE(15,6,ROW($H$3:$H$768)-ROW($H$2)/($J$3:$J$768<=-10),ROW()-ROW($Y$289))),"")
Z290:Z313Z290=IFERROR(INDEX($A$3:$A$768,AGGREGATE(15,6,ROW($H$3:$H$768)-ROW($H$2)/($J$3:$J$768<=-10),ROW()-ROW($Z$289))),"")
AA290:AA313AA290=IFERROR(INDEX($J$3:$J$768,AGGREGATE(15,6,ROW($H$3:$H$768)-ROW($H$2)/($J$3:$J$768<=-10),ROW()-ROW($AA$289))),"")
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I am not certain about your row offsets but try this in AW289
Excel Formula:
=COUNTIFS($Y$290:$Y$769,AV285,$Z$290:$Z$769,"W")+0.5*(AU285="PSH")&"-"&COUNTIFS($Y$290:$Y$769,AV285,$Z$290:$Z$769,"L")+0.5*(AU285="PSH")
 
Upvote 0
Solution
I am not certain about your row offsets but try this in AW289
Excel Formula:
=COUNTIFS($Y$290:$Y$769,AV285,$Z$290:$Z$769,"W")+0.5*(AU285="PSH")&"-"&COUNTIFS($Y$290:$Y$769,AV285,$Z$290:$Z$769,"L")+0.5*(AU285="PSH")
I modified your formula, and it works. Thank you.
Excel Formula:
COUNTIFS($Y$290:$Y$769,AV302,$Z$290:$Z$769,"W")+(COUNTIFS($Y$290:$Y$769,AV302,$Z$290:$Z$769,"PSH")*0.5)&"-"&COUNTIFS($Y$290:$Y$769,AV302,$Z$290:$Z$769,"L")+(COUNTIFS($Y$290:$Y$769,AV302,$Z$290:$Z$769,"PSH")*0.5)
 
Upvote 0

Forum statistics

Threads
1,225,902
Messages
6,187,734
Members
453,437
Latest member
Chexmix

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