A
A
armydrawer2022-02-21 11:11:01
SQL
armydrawer, 2022-02-21 11:11:01

How to move values ​​to new lines by condition?

Good afternoon. Ask for help from the community.
There is an array that needs to be spaced into different lines according to the condition, see the plate

Tried query, vlookup. I understand that just some algorithm can be applied.

An array of people with FLATTEN was deduced in one column, but I can’t think of how to bind the first two columns by condition.

Just in case, I'm attaching a screenshot.
6213478c5cacc280535835.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2022-02-21
@armydrawer

From simple and unpretentious, you can try this

=ARRAYFORMULA(QUERY(
  SPLIT(FLATTEN(A1:A5& "|" & B1:B5 & "|" & C1:F5);"|");
  "where Col3<>''"
))

62135b41b4037281550805.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question