Stuck on a sum with condition

orsm6

Well-known Member
Joined
Oct 3, 2012
Messages
504
Office Version
  1. 365
Platform
  1. Windows
Hi all - hoping I could get your help on my typical and probable unnecessarily over complicated request.

I am trying to sum the number of times "140" appears in a range: B9:S21
Where the helper row B5:S5 contains the value of W9.

is this even possible?

Image uploaded hoping it might help

TIA :)
 

Attachments

  • Screenshot 2024-05-28 085003.png
    Screenshot 2024-05-28 085003.png
    14 KB · Views: 13

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
Your question is a bit unclear.
What is the helper row and how does it come into play? What's in W9?
Your screenshot doesn't include any column and row references making it difficult to decipher what you're referring to.
 
Upvote 0
Your question is a bit unclear.
What is the helper row and how does it come into play? What's in W9?
Your screenshot doesn't include any column and row references making it difficult to decipher what you're referring to.
Sorry not sure how i can make it clearer.

I am trying to count the number of times '140' appears in range B9:S21 if the number 140 falls in a column where the value in W9 matches in row B5:S5 - in this case it would be zero.
but if i changed W9 to player 4 it would return 1


the helper row was there because originally I was trying to sum in a range containing merged cells (row 7)
W9 contains the player name
new snip uploaded.
 

Attachments

  • Screenshot 2024-05-28 101706.png
    Screenshot 2024-05-28 101706.png
    20.4 KB · Views: 3
Upvote 0
-Editing-
 
Last edited:
Upvote 0
Try:
Excel Formula:
=SUM(--(FILTER(B9:S21,B5:S5=W9)=140))
 
Upvote 1
Solution
Try:
Excel Formula:
=SUM(--(FILTER(B9:S21,B5:S5=W9)=140))
thanks - this appears to work... I was on the right track. I had mostly the same, but did not know how to include 2 conditions.
 
Upvote 0

Forum statistics

Threads
1,221,902
Messages
6,162,724
Members
451,782
Latest member
LizN

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