Forum Discussion
acnicolet
Aug 14, 2025Copper Contributor
#SPILL!-errors are driving me nuts.
Hello all. I'm pulling my hair out again over Excel returning a SPILL error for a perfectly normal function (No arrays etc.). What's going on here?
=IFERROR((1-MIN(ABS($B8)/3,1))*B3+MIN(ABS($B8)/3,1)*INDEX($B3:$F3,1,COLUMN(B3)-COLUMN($B3)+1-SIGN($B8)),0)
Is there a way to just switch off SPILL entirely?
/A
2 Replies
- SergeiBaklanDiamond Contributor
You may use
=@IFERROR( (1-MIN( ABS($B7)/3,1) )*B2 + MIN( ABS($B7)/3,1 ) * INDEX($B2:$F2, 1, COLUMN(B2)-COLUMN($B2)+1-SIGN($B7)), 0)or
=IFERROR( (1-MIN( ABS($B7)/3,1) )*B2 + MIN( ABS($B7)/3,1 ) * INDEX($B2:$F2, 1, MAX(1, COLUMN(B2)-COLUMN($B2)+1-SIGN($B7) )), 0) If COLUMN(B3)-COLUMN($B3)+1-SIGN($B8) evaluates to 0, INDEX will return the entire row $B3:$F3, causing your formula to return 3 cells.