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

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
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
small correction:
Excel Formula:
=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:
or as above:
Excel Formula:
=LET(a,$A$2#,aa,IF(a="",0,a),BYROW(aa,LAMBDA(aa,SUM(aa))))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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