Aggregate Function

cshetty

Board Regular
Joined
Apr 15, 2017
Messages
79
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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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,223,630
Messages
6,173,451
Members
452,514
Latest member
cjkelly15

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