Confused: SUMIF combined with SUBTOTAL?

kingofcamden

New Member
Joined
Feb 13, 2015
Messages
13
Dear all,


I am trying to combine SUMIF & AVERAGE with SUBTOTAL to only "SUMIF/AVERAGEIF" visible cells. The formula I use for the SUMIF is:


Code:
=SUMIF(Report_Details!AA14:AA8013,1,Report_Details!F14:F8013)


And for the AVERAGEIF:


Code:
=AVERAGEIF(Report_Details!AA14:AA8013,1,Report_Details!H14:H8013)


However, as soon as I apply a filter to the data stored in the Report_Details sheet, the formulas don't update to only calculate the visible cells.


Does anyone know how this can be solved? Quite complex and I've tried for a while now with now success :(


Hope someone can help.


Many thanks,
Mat
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I had to exclude this from the report for now, so should be fine...
Thanks very much for your help though! Really appreciate it.
Have a good one,
Mat
 
Upvote 0
I had to exclude this from the report for now, so should be fine...
Thanks very much for your help though! Really appreciate it.
Have a good one,
Mat

Thanks for the update. By the way, there is no need for SUM around the arithmetic, i.e.,

(100/G14*M14)/100

should be ok.
 
Upvote 0

Forum statistics

Threads
1,217,241
Messages
6,135,441
Members
449,934
Latest member
fernandy772

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