google-sheetsrowdrag

Skip rows in source sheet when dragging down formula in Google Sheets


I am trying to drag down a formula that is pulling data from one sheet into another. I need to skip rows on the sheet that it is pulling from.

Example:

='Heat 1'!AG2
='Heat 1'!AG6
='Heat 1'!AG10

etc.

I did some research and found a few formulas that I thought might work, but they were looking to have the formula skip rows on the sheet that is pulling, not that is getting pulled from.


Solution

  • Here's one approach you may test out which allows you to get the whole output table in one go:

    =let(Λ,reduce(tocol(,1),tocol(G:G,1),lambda(a,c,vstack(a,map(indirect(c&"!A2:A"),lambda(Σ,if(Σ="",,{Σ,torow(offset(Σ,,column(AG1)-1,4))})))))),
         filter(Λ,index(Λ,,1)))
    

    enter image description here