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)))
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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
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
View attachment 107405

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.

Are you saying you want to return a blank if columns V and AA are missing data, ... what what the addition statement in your original post about?
never mind
 
Upvote 1
What is the relation between the two statements.
Is the array in A2#?

How is a 22 or 27 missing from a sequence?
 
Last edited:
Upvote 0
Try
Excel Formula:
=sum(INDEX(A2#,,22),INDEX(A2#,,27))
 
Upvote 0
What is the relation between the two statements.
Is the array in A2#?

How is a 22 or 27 missing from a sequence?
Sorry Awoohaw, yes the A2# is the spill range that goes from column A to AD. The ISBLANK formula I'm looking to create is contained outside of that spill range in column AX.
 
Upvote 0
Okay, but how is 22 or 27 ever missing from a sequence of 1-30?
 
Upvote 0
Okay, but how is 22 or 27 ever missing from a sequence of 1-30?
They're not, the data in the cells from columns that represent 22 or 27 could be missing. So if I have 100 rows from the spill array and 5 of those rows have a blank in the cells in either column 22 (V) or 27 (AA), I would still want to calculate the total.

1708710077799.png
 
Upvote 0
you want the total of the rows?

try this:
although this has no blank cells, it wil work.
Book2
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAXAY
1
2213978135511082432656104824210695151
32654436515372538361767310738216139
49106116108694517105888625106135643173
51221071055648219181894241055102533152
63861551471064252310105199172510852156
7
Sheet1
Cell Formulas
RangeFormula
A2:AD6A2=RANDARRAY(5,30,1,10,1)
AX2:AX6AX2=LET(a,$A$2#,aa,IF(a="",0,a),BYROW(aa,LAMBDA(aa,SUM(aa))))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,676
Messages
6,126,165
Members
449,295
Latest member
DSBerry

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