The return value of the adjacent cell
I have a piece of code that looks like this:
I am trying to return the cell directly below the cell that is "A", but I don't want to have spaces between the cells.
I tried to use =IF(A1="A",OFFSET(A1,1,0))
, but this adds "FALSE" between cells where it doesn't:
How to remove spaces with output-only formula:
source to share
This standard formula will collect values directly in each cell that contains A.
Use this in B1 =IFERROR(INDEX(A:A,SMALL(INDEX(ROW(A:A)+(A:A<>"A")*1E+99,,),ROW(1:1))+1),"")
and fill in as needed.
IFERROR
returns empty strings when the return value ends. This is not the same as true blank cells.
Even though it is entered as a standard formula, this uses array processing, and if you find the calculation lagging behind the problem, compare all the column range references to something closer to what your data volume represents.
source to share