Using aggregate function with sum-product to avoid hidden rows

Noah101

New Member
Joined
Sep 10, 2017
Messages
23
Good day experts,

I'm using a sumproduct formula =(sumproduct (Handle time * contacts)/(sum contacts)

How do I use aggregate with this to avoid hidden rows?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
The simple way is to add a helper column, e.g. assuming contacts are in column A then in Z2 copied down

=SUBTOTAL(2,A2)

That will now only show a 1 on visible rows that contain a number in column A

Now change your formula to

=SUMPRODUCT(Handle time * contacts * (helper=1))/SUBTOTAL(9,contacts)

To do the same without any helper column you can use this formula

=SUMPRODUCT(Handle time, SUBTOTAL(9,OFFSET(contacts, ROW(contacts)-MIN(ROW(contacts)),0,1)))/SUBTOTAL(9,contacts)

Assumes that contacts is a column of data
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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