Google-sheets – How to get data to fill alternative cells when data is present in a zigzag pattern

formulasgoogle sheetsgoogle-sheets-query

https://docs.google.com/spreadsheets/d/1kwGbFd88cgifQRK_ZqsahQt1aDLzMTnmxHKs7mML5jA/edit?usp=sharing

How to get data entered in one cell to fill another cell in a different location with same values simultaneously when it is above or below certain values but when data is already present there to default to second or third alternative location that will be located either directly to the right or to the right and below present in a zigzag pattern.

the link has a detailed description of the question

0

Best Answer

0

E141:

=QUERY({$C$5:$C$110; $J$5:$J$110; $Q$5:$Q$110}, 
 "where Col1 is not null order by Col1 limit 1", 0)

F141:

=QUERY({$C$5:$C$110; $J$5:$J$110; $Q$5:$Q$110}, 
 "where Col1 is not null order by Col1 limit 1 offset 1", 0)

F140:

=QUERY({$C$5:$C$110; $J$5:$J$110; $Q$5:$Q$110}, 
 "where Col1 is not null order by Col1 limit 1 offset 2", 0)

E139:

=QUERY({$C$5:$C$110; $J$5:$J$110; $Q$5:$Q$110}, 
 "where Col1 is not null order by Col1 limit 1 offset 3", 0)

F139:

=QUERY({$C$5:$C$110; $J$5:$J$110; $Q$5:$Q$110}, 
 "where Col1 is not null order by Col1 limit 1 offset 4", 0)

etc.


or like:

0