Add rows based on criteria in parent row

neov

Board Regular
Joined
Oct 3, 2003
Messages
67
Hi all - I've got a spreadsheet for manufactured items and a bill of material.

Column A is the parent item - can be same item on many rows, but there are multiple values in this column

Column B is the component - each parent will typically have 7-20 components - give or take a few

Columns C through DE - are the designators for each parent/component combination. Some will only have one, two, or maybe even 3 - but there are some that have as many as
107 different designators listed in columns C - DE.

What I need is to change the layout so that columns A and B are still parent and component, respectively, but I need each row to be a unique parent/component/designator combination - no items should be in columns D and beyond.

This will drastically increase the number of rows in my table, but it will allow me to perform a simple copy/paste to update my SQL table that I need to store this data in.

Thanks in advance.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
'ROWS TO COLUMNS
Here's a macro for expanding rows of data to multiple rows parsing out the values in the row while duplicating the header row as categories. There's a sample workbook too you could drop your data into and test it out.

When you run the macro, indicate column C as the column to start splitting by, then A:B will be duplicated on all the new rows as you've described.
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,520
Members
452,921
Latest member
BBQKING

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top