I'm very sorry for the hijack.

Sample Link

The sample sheet is the sort of data arrangement I have. Most are like the 1st row where the number of csv is the same in at least 2 cells. There are also some rows similar to the 2nd row.

The result page is the type of result I hope to achieve.

I understand that using the codes you provided, I can separate those similar to the 2nd row. But the single sheet that I hope to edit contains both type of rows.
Thanks.