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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

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,140
Messages
5,570,400
Members
412,321
Latest member
Yusuf_A
Top