Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

How to split a row into multiple rows based on cell value

Topic Labels: Formulas
891 1
Showing results for 
Search instead for 
Did you mean: 

Hi all,

I’m facing the following challenge:

I have a table with a list of Product items (Catalog), to simplify the question I have 3 columns:

Product name | Product ID | Sizes
Red Tshirt | 14828 | S,M,L
Blue boots | 5423 | 8,9,10,11,12

I need to take a single row and duplicate it & split it per each size as the following:
This original row:
Red Tshirt | 14828 | S,M,L

Should become this:
Red Tshirt | 14828 | S
Red Tshirt | 14828 | M
Red Tshirt | 14828 | L

(So all the other columns have the same values)

Has any 1 ever encountered something like this?

Thanks :slightly_smiling_face:

1 Reply 1

Hello @Dropit_Shopping,

It is doable using a script. Where do you want to put the new rows? In the same table as the source row? Or in a new table somewhere? A little more context about your problem would help.