Subtotal formula query

cuddy89

New Member
Joined
Nov 26, 2019
Messages
17
Office Version
  1. 2016
Platform
  1. Windows
Please can I have help combining the SUBTOTAL(9,...) formula with the formula below, so that the figures update when a filter is applied to the data

=(SUMPRODUCT(RH4:RH530,INDEX(L4:RD530,,MATCH(B1,L2:RD2)))/SUM(INDEX(L4:RD530,,MATCH(B1,L2:RD2))))/1.2

Thank you

Richard
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
One option is to use a helper column with
Excel Formula:
=SUBTOTAL(103,A4)
Change col A to a column that will always have a value. And then use
Excel Formula:
=(SUMPRODUCT(RH4:RH530,INDEX(L4:RD530,,MATCH(B1,L2:RD2)),--(RI4:RI530=1))/SUBTOTAL(109,INDEX(L4:RD530,,MATCH(B1,L2:RD2))))/1.2
Change the RI column to reference the helper column.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,702
Members
449,048
Latest member
81jamesacct

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