Give Me Arrays
New Member
- Joined
- Oct 15, 2021
- Messages
- 3
- Office Version
- 365
- 2016
- 2013
- Platform
- Windows
- Mobile
- Web
Hi All,
Very familiar with the ins/outs of using complex array formulas, but found the strangest issue with SUM not summing the numerical contents of the reduced array, e.g., =SUM({0,0,1,0,0})...and this produces a zero. However, it works as intended by entering it as a standard formula (just pressing enter). At first I thought this was maybe a new 365 calc engine issue, but then I found a 2009 post ("Why does wrapping an Excel array formula in a SUM not produce the sum of the contents in this case?") on another common forum (stackoverflow) with the same issue (never actually answered), which I replicated in 365 to the same effect.
Formula structure as follows: =SUM(N(ISNUMBER(MATCH(range1,IFERROR(INDEX(range2,MATCH(range3,ref,0)*ascending.numeric.range),""),0))))
What's especially peculiar is that if you enter the formula as an array formula and you add ">0" at the end, it passes off the sum of the array to calculate "1>0" and it evaluates it as FALSE. Even if you force "1*1>0" to do a paranoid sanity check on the 1 passing to the ">0" calc. This really has me puzzled.
Questions:
Thank You,
Give Me Arrays
Very familiar with the ins/outs of using complex array formulas, but found the strangest issue with SUM not summing the numerical contents of the reduced array, e.g., =SUM({0,0,1,0,0})...and this produces a zero. However, it works as intended by entering it as a standard formula (just pressing enter). At first I thought this was maybe a new 365 calc engine issue, but then I found a 2009 post ("Why does wrapping an Excel array formula in a SUM not produce the sum of the contents in this case?") on another common forum (stackoverflow) with the same issue (never actually answered), which I replicated in 365 to the same effect.
Formula structure as follows: =SUM(N(ISNUMBER(MATCH(range1,IFERROR(INDEX(range2,MATCH(range3,ref,0)*ascending.numeric.range),""),0))))
What's especially peculiar is that if you enter the formula as an array formula and you add ">0" at the end, it passes off the sum of the array to calculate "1>0" and it evaluates it as FALSE. Even if you force "1*1>0" to do a paranoid sanity check on the 1 passing to the ">0" calc. This really has me puzzled.
Questions:
- Is an array formula entered this way (just enter) reliable?
- It's been tested and works but should I expect it to fail at some point?
- Is this formula backwards compatible without entering it as an array formula?
- Can someone please explain whether this is a known issue with a definable reason?
Thank You,
Give Me Arrays