Aggregate and Products of Arrays

ryjmc

New Member
Joined
Jan 28, 2016
Messages
2
It seems strange to me that AGGREGATE doesn't return the expected result when using the product of two arrays. I have the following example:

=AGGREGATE(9,6,(F26:F880)*NOT(ISERROR(H26:H880)))

where cols F and H have values and errors. I simply wanted to get the sum of the values in F ignoring those values in F where F is an error, or the corresponding value in H is an error. When I evaluate the formula, it appears to in fact produce the expected array in the second to last step, but then end up evaluating to #VALUE!. Am I missing something here, or has this functionality, just been left out of the coding for the AGGREGATE function.

It appears that SUMIFS does work:

=SUMIFS((F26:F880),(F26:F880),">0",(H26:H880),">0")

Thank you for any insight.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
In your AGGREGATE formula, this part returns an array...

Code:
(F26:F880)*NOT(ISERROR(H26:H880)

However, only certain functions (ie. small, large, etc.) accept arrays. Hence the error value. See Excel Help for additional information.
 
Last edited:
Upvote 0
Domenic,

Thanks for the confirmation. Seems like providing array handling for all of the options of AGGREGATE would have made a lot of sense. I wonder why it wasn't coded for that.

Cheers

In your AGGREGATE formula, this part returns an array...

Code:
(F26:F880)*NOT(ISERROR(H26:H880)

However, only certain functions (ie. small, large, etc.) accept arrays. Hence the error value. See Excel Help for additional information.
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,664
Members
448,976
Latest member
sweeberry

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