Array formula that worked with just enter

psrs0810

Well-known Member
Joined
Apr 14, 2009
Messages
1,109
I used the following array formula to sum the top 3 values, but instead of finishing it with ctrl+shift+enter, I used enter and it came up with the same information. Why is this?
=SUM(LARGE(A2:A12,{1,2,3}))
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
everything that I read said I needed to use ctrl+shift+enter. What I am trying to figure out is why the formula worked when I just hit enter.

thanks
 
Upvote 0
SUM, in the context that you provided, will work because the array passed is an inline array constant (the bit in the curly brackets).

Had you used:

=SUM(LARGE(A1:A12),ROW(1:3))

Then you would have needed to confirm with CSE, or substitute for SUMPRODUCT.
 
Upvote 0
Well there isn't really a hell of alot more to say on the subject. I'll try and explain why.

An inline array constant is (from back to front):
  • A constant (because the values will no change)
  • An array (because it contains many values)
  • Inline (because it has been fed directly to the formula)

Excel knows to treat your formula as an array formula because it has been fed an array constant, by mere virtue that it contains an array.

Passing a range to a formula does not explicitly tell Excel that the formula is an array formula because it might not be.

Hope this makes sense...
 
Upvote 0
The whole story of how excel processes these sorts of arrays is actually quite interesting. So although the original question has been addressed, I think you might find this an interesting read Mike. Particularly post #14
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,839
Members
452,948
Latest member
UsmanAli786

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