Forum Discussion

James_Buist's avatar
James_Buist
Brass Contributor
Aug 17, 2024
Solved

Another, hopefully quick, Dynamic Array question

With a 2D array I wanted to replace any blank values on a row with the previous value. I found this which sort of worked. =SCAN(0, N72:AJ74, LAMBDA(a,v, IF(v="",a,v))) However, the accumulator value...
  • OliverScheurich's avatar
    Aug 17, 2024

    James_Buist 

    =DROP(REDUCE("",SEQUENCE(ROWS(N72:AJ74)),LAMBDA(x,y,VSTACK(x,SCAN(0, CHOOSEROWS(N72:AJ74,y), LAMBDA(a,v, IF(v="",a,v)))))),1)

     

    Does this formula return the intended result?

Resources