IF(OR(ISBLANK Formula that is part of a Spill Array

ScottTemple

Board Regular
Joined
Dec 28, 2023
Messages
103
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a spill array in tab2 of my workbook as follows:

=LET(a,CHOOSECOLS(Shaver_Data,SEQUENCE(30)),IF(a="","",a))

I have a formula in cell AX:

=(INDEX(A2#,,22)+(INDEX(A2#,,27)))

However, if either 22 or 27 is missing it's value/blank, I need to have the calculation still continue, currently it returns a #VALUE! error in the cell. I have attempted the following formula, but receive an error message:

=IF(OR(ISBLANK(INDEX(A2#,,22),ISBLANK(INDEX(A2#,,27)),"",(INDEX(A2#,,22)+(INDEX(A2#,,27)))
 
small correction:
=LET(a,$A$2:$AD$6,aa,IF(a="",0,a),BYROW(aa,LAMBDA(aa,SUM(aa)))) unless the array is already defined in your worksheet:

=LET(a,$A$2:$AD$6,aa,IF(a="",0,a),BYROW(aa,LAMBDA(aa,SUM(aa))))
Cell A2 contains my spill array formula though: =LET(a,CHOOSECOLS(Shaver_Data,SEQUENCE(30)),IF(a="","",a))
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Cell A2 contains my spill array formula though: =LET(a,CHOOSECOLS(Shaver_Data,SEQUENCE(30)),IF(a="","",a))
then this:

Excel Formula:
=LET(a,CHOOSECOLS(Shaver_Data,SEQUENCE(,30)),BYROW(a,LAMBDA(a,SUM(a))))
 
Last edited:
Upvote 0
How about
Excel Formula:
=BYROW(CHOOSECOLS(A2#,22,27),LAMBDA(br,SUM(br)))
 
Upvote 0
then this:

Excel Formula:
=LET(a,CHOOSECOLS(Shaver_Data,SEQUENCE(,30)),aa,IF(a="",0,a),BYROW(aa,LAMBDA(aa,SUM(aa))))
That gives me a circle reference warning and then wipes out my spill data. I don't believe changing the CHOOSECOLS is the right path. I have other formulas in columns AE to BA that pull from my spill range and they have different formulas for calculating data. Does the ISBLANK with OR not work with spill arrays?
 
Upvote 0
How about
Excel Formula:
=BYROW(CHOOSECOLS(A2#,22,27),LAMBDA(br,SUM(br)))


Same scenario Fluff. I get the same error code and then my spill array disappaers.

1708711547693.png


1708711587939.png
 
Upvote 0
That gives me a circle reference warning and then wipes out my spill data. I don't believe changing the CHOOSECOLS is the right path. I have other formulas in columns AE to BA that pull from my spill range and they have different formulas for calculating data. Does the ISBLANK with OR not wor

this?

Book2
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAX
1
2213978135511082432656104824210695151
3265436515372538361767310738216135
49106111086941105888625106135643155
5122107105548219181894241055102533146
63861551471064252310105199172510852156
7
8
9
10213978135511082432656104824210695
11265436515372538361767310738216
129106111086941105888625106135643
13122107105548219181894241055102533
143861551471064252310105199172510852
Sheet1
Cell Formulas
RangeFormula
A2:AD6A2=LET(a,CHOOSECOLS(Shaver_Data,SEQUENCE(30)),IF(a="","",a))
AX2:AX6AX2=LET(a,$A$2#,BYROW(a,LAMBDA(a,SUM(a))))
Dynamic array formulas.
Named Ranges
NameRefers ToCells
Shaver_Data=Sheet1!$A$10:$AD$14A2
 
Upvote 0
this?

Book2
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAX
1
2213978135511082432656104824210695151
3265436515372538361767310738216135
49106111086941105888625106135643155
5122107105548219181894241055102533146
63861551471064252310105199172510852156
7
8
9
10213978135511082432656104824210695
11265436515372538361767310738216
129106111086941105888625106135643
13122107105548219181894241055102533
143861551471064252310105199172510852
Sheet1
Cell Formulas
RangeFormula
A2:AD6A2=LET(a,CHOOSECOLS(Shaver_Data,SEQUENCE(30)),IF(a="","",a))
AX2:AX6AX2=LET(a,$A$2#,BYROW(a,LAMBDA(a,SUM(a))))
Dynamic array formulas.
Named Ranges
NameRefers ToCells
Shaver_Data=Sheet1!$A$10:$AD$14A2
No unfortunately that doesn't work either.
 
Upvote 0
Which column are you trying to put the formula in?
 
Upvote 0
Which column are you trying to put the formula in?
Column AX. Columns A - AD contain the spill array, and then I have various formulas that pull from that array in columns AE - BA.

V= Index A2#,,22 AA= Index A2#,,27
1708713204304.png


AX2 should return a blank value, as there is no data in V or AA for that row.
AX28 should return a value of 8 as there is an 8 in V and nothing in AA.
 
Upvote 0
If this =(INDEX(A2#,,22)+(INDEX(A2#,,27))) works other than the errors, then I see no reason why
Excel Formula:
=BYROW(CHOOSECOLS(A2#,22,27),LAMBDA(br,SUM(br)))
wouldn't work if placed in col AX
 
Upvote 1
Solution

Forum statistics

Threads
1,215,093
Messages
6,123,068
Members
449,091
Latest member
remmuS24

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