Reputation: 33
I have the following table:
However, I need to convert it into something like this:
Meaning that I need to repeat the first Cell times the number of elements in the next cell (assuming we will split them by ";"). I've tried several approaches, but so far nothing came close to the final table I am showing in the picture. Any help will be greatly appreciated.
Upvotes: 1
Views: 64
Reputation: 1
use:
=INDEX(QUERY(SPLIT(FLATTEN(A2:A&"×"&SPLIT(B2:B, ";")), "×"),
"where Col2 is not null", ))
Upvotes: 1