Scan & Lambda functions error

Cubist

Well-known Member
Joined
Oct 5, 2023
Messages
1,035
Office Version
  1. 365
Platform
  1. Windows
Book1
ABCDEFGHIJKLM
4Values$67,866$278,888$13,229$3,006$390,376$931$5,650$547$265($9)
5Error formula#VALUE!#VALUE!#VALUE!#VALUE!#VALUE!#VALUE!#VALUE!#VALUE!#VALUE!#VALUE!#VALUE!#VALUE!
6
7Works$67,866$346,753$359,983$362,989$753,365$754,296$759,946$760,493$760,759$760,750$760,912$760,979
Sheet1
Cell Formulas
RangeFormula
B5:AK5B5=SCAN(0,C4:AL4,LAMBDA(a,b,a+b))
B7:AJ7B7=SCAN(0,D4:AL4,LAMBDA(a,b,a+b))
Dynamic array formulas.


Can someone explain why if my array starts with cell C4, it doesn't work; but it does if I start at D4?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
The formula works for me.
Try entering the formula again and/or try your mini example on a clean sheet.
 
Upvote 0
Solution
What works for me too is:

Excel Formula:
=SCAN(0,C4:AL4,SUM)

I can't reproduce any error.
 
Upvote 0
Thanks all for the suggestion. I did take your advice and tried on a fresh sheet. I discovered that cell C4 was actually blank text.
 
Upvote 0
You will get the error is C4 is not an empty cell.
 
Upvote 0

Forum statistics

Threads
1,216,045
Messages
6,128,480
Members
449,455
Latest member
jesski

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