Sumproduct + subtotal second criteria

Slayland

New Member
Joined
Sep 12, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have this formula that I found online, =SUMPRODUCT((FH_Goals > 0.5)*(SUBTOTAL(103,OFFSET('Team Stats Data'!O8,ROW(FH_Goals)-MIN(ROW(FH_Goals)),0)))). I have tried to get a second criteria that I need into it but simply cant get my head around it and getting frustrated!!

The second criteria that I want is for League_Combined = B4&"Y". So if both (League_Combined=B4) and (FH_Goals > 0.5) I need it to count only visible cells. I have given it a good go and read some pages describing syntax for around an hour now but starting to get annoyed so asking for help. Hopefully working formula would help my understand better.

Thanks
 

Some videos you may like

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Slayland

New Member
Joined
Sep 12, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Just to add, I have done this =SUMPRODUCT((SH_Goals = C4)*(FH_Goals > 0.5)*(SUBTOTAL(103,OFFSET('Team Stats Data'!O7,ROW(FH_Goals)-MIN(ROW(FH_Goals)),0,1))))

And this works for the range of SH_Goals, however the range that I want doesnt work. When I replace it where the SH_Goals is its just returning N/A. Any ideas why this would be?
 

Slayland

New Member
Joined
Sep 12, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I think I figured it out, my ranges were not the same size, and the one that was working so happened to be the same size
 

Watch MrExcel Video

Forum statistics

Threads
1,118,710
Messages
5,573,743
Members
412,550
Latest member
soking
Top