How Do I Know I Have an Array Formula?

bencar

Banned user
Joined
Jun 8, 2016
Messages
149
How do i know I have an array formula? For example, how do I know when to add brackets around this array formula?
{B2:I2*B3:BI}

And also with this?
{=SUM((A1:A10="jim")*(B1:B10="ben")*(C1:C10="alice")*(D1:D10))}
 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
If you have bits with

[1] pairwise multiplications like

(A2:A4)*(B2:B4)

(A2:A4="jim")*(B2:B4)

[2] with IF(s) which act(s) as filter like

IF(A2:A4>=2,1)

[3] with multi-valued references which serve as look up value or comparison value like...

MATCH(A2:A4,B2:B4,0)

A2:A4=B2:B4

you have to do with an array-processing formula.

The foregoing list is probably not exhaustive. The gist is: bits leading to multi-value results indicate array-processing, therefore control+shift+enter if the receiving function is not designed exlusively for array-objects like SUMPRODUCT.

Hope this helps.

[...]
I really dont get what youre saying. Could you explain with easier examples?

You can check the behavior of the examples I gave for yourself.

Create a sheet, Name it 1.

Enter number in A2:A4 and in B2:B4.

In A6 enter:

=(A2:A4)*(B2:B4)

Observe the result.

Select A6. Go to the Formula Bar. Select what you see. Hit F9. Observe the result which is an array given between { and }. This is a multi-value result. Hit the Escape key.

In A7 enter:

=SUM((A2:A4)*(B2:B4))

As you see, SUM does not aggregate (total) the array F9 shows.

In A8 control+shift+enter:

=SUM((A2:A4)*(B2:B4))

Now you see a total, a value which is aggregated by SUM upon the control+shift+enter instruction.

Create a new sheet. Name it 2. Try to evaluate the example given under [2].

And, create a new sheet. Name it 3. Try to evaluate the example given under [3].
 
Upvote 0
What first number is returned? Using the formula without CSE I get the results in column F. With CSE I get results in column G

In your example put $ signs around the range before you copy down to get the correct results. (highlight the range and press F4). But you see {30,15} --not counting the zeroes in between.

how were you able to paste cells from excel in your post?

To post your spreadsheet as above:

https://www.mrexcel.com/forum/about-board/947826-why-cant-i-add-attachments-my-threads.html
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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