Is there now a change in how array formulas work? (A bit mysterious)

TomCon

Active Member
Joined
Mar 31, 2011
Messages
373
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Testing this formula
=SUM(IF(goal!R1551:R1600=goal!R1551:R1600,1))
As you see it should evaluate TRUE for each of 50 rows (since identical expression on both sides of the = sign), and so result in 50.
It works both entered as an array formula or entered as a regular (non-array) formula.

It seems to me that in the past this had to be an array formula and if you did not enter it as such, it would result in an error.

Now look at this test example.
=SUM(IF(OFFSET(goal_rng,1550,COLUMN(goal!$R$1),50,1)=OFFSET(goal_rng,1550,COLUMN(goal!$R$1),50,1),1))
This expression also has identical expressions on both sides of the = sign and so should evaluate TRUE for every case, and TRUE is set to 1, so the SUM should evaluate to 50.

If you enter it as a non-array formula, it evaluates to 50.
If you enter it as an array formula, it gives #VALUE.

I would have thought it needed to be entered as an array formula.

Can anybody explain/straighten this out for me?

Thank you.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Thank you for that link.

Its not that well written an article, though. Is the summary simply "you no longer need old style array formulas, and you now just enter the same old syntax of an array formula with 'regular ENTER' (instead of Ctl-Shift-Enter)...and if the syntax is correct for what an array formula would have been, it will be interpreted in the same way that the old-style array formula would have been interpreted"?

What i just said seems to be correct for my first example [=SUM(IF(goal!R1551:R1600=goal!R1551:R1600,1)) ] as it is interpreted correctly as an old-style array formula, even without Ctl-Shift_Enter. The second expression is a little more ambiguous as it ONLY works if entered "regular" and not as an array formula.

I guess my conclusion is "just enter an array formula now without Ctl-Shift-Enter and see if it works". Does that seem right to you?

Thanks!
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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