Aggregate Function

cshetty

Board Regular
Joined
Apr 15, 2017
Messages
85
Office Version
  1. 2016
Platform
  1. Windows
Dear Experts

What wrong am doing with this formula.

=AGGREGATE(9,7,K6:K1022/(K6:K1022="Active"),L6:L1022)

Wanted to sum L6 to L1022 excluding errors for range K6 to K1022 equal to active. Is it possible using aggregate ?

Thanks in advance.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Try
Excel Formula:
=SUMPRODUCT(--(K6:K1022="Active"),IFERROR(L6:L1022,0))
 
Upvote 0
Solution
Your code worked as an array formula.
Not sure what you mean? SUMPRODUCT function does not require Ctrl+Shift+Enter confirmation.

Any non array formula alternate please.
You are working with arrays of values so whatever you use has to be able to deal with arrays whether it requires c+s+e or not.
 
Upvote 0
SUMPRODUCT function does not require Ctrl+Shift+Enter confirmation.
Hmm, I don't have an old version to check but perhaps the use of IFERROR might make the formula require c+s+e?
If that is the case then I think that you would need an array-entered formula.
 
Upvote 0

Forum statistics

Threads
1,224,613
Messages
6,179,903
Members
452,948
Latest member
Dupuhini

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