Excel Experts- I need your help

BNB

Moderator
Staff member
Donator
Joined:
Jun 9, 2011
Posts:
15,556
Liked Posts:
8,349
Location:
Chicago
My favorite teams
  1. Chicago Bulls
  1. Chicago Bears
  2. Oakland Raiders
  1. Chicago Blackhawks
Ok, so I'm pretty good with Excel, but I can't figure this shit out.

I need a value to change as I use the filter to get rid of some other data. I know the SUBTOTAL function does this. But my value is calculated using the SUMPRODUCT function. ( =SUMPRODUCT(S4:S26,T4:T26)/SUM(S4:S26) ) is the formula I'm using, and it gives me a value of 3:56, which is what I want.

But if, for example, I want to filter out row 10, I need the value to be recalculated and show the sumproduct of what is currently showing on the sheet.

Am I making sense?

So I guess what I'm asking is.... is there a way to combine SUBTOTAL and SUMPRODUCT, and how?
 

Crystallas

Three if by air
Staff member
Donator
Joined:
Jun 25, 2010
Posts:
20,013
Liked Posts:
9,558
Location:
Next to the beef gristle mill
My favorite teams
  1. Chicago Bulls
remove row 10 from your arrays.

=SUMPRODUCT(S4:S9,S11:S26,T4:T9,T11:T26)/SUM(S4:S9,S11:S26)

or do a mod function as a rule for the whole spreadsheet, and define uncountable cells. You need to decide whether you want to use mod functions early, because if you start doing that with normal formulas throughout the sheet, you'll break all the formulas.
 

Monster

Well-known member
Joined:
Aug 21, 2012
Posts:
14,848
Liked Posts:
8,494
That's what I was thinking... Also, what's Excel?
 

Top