Adding rows to a spreadsheet based on a value in a cell

racekarr

New Member
Joined
Jan 14, 2005
Messages
4
This should be an easy one but it has me stumped.
I have a spread sheet with 3 columns. Each row contains information on product inventory:
ITEM DESCRIPTION QUANTITY PRICE
96-a123 Bolt A 3 $3.95
96-a321 Bolt b 2 $2.95
96-a231 Bolt c 5 $1.95

What I want to do is create new rows based on the number in the third column and change the number to 1 (since the Item will have a row of it's own now). The spreadsheet could be 100 rows or more. The end product would look like this:
ITEM DESCRIPTION QUANTITY PRICE
96-a123 Bolt A 1 $3.95
96-a123 Bolt A 1 $3.95
96-a123 Bolt A 1 $3.95
96-a321 Bolt b 1 $2.95
96-a321 Bolt b 1 $2.95
96-a231 Bolt c 1 $1.95
96-a231 Bolt c 1 $1.95
96-a231 Bolt c 1 $1.95
96-a231 Bolt c 1 $1.95
96-a231 Bolt c 1 $1.95

 
Thanks, any help would be greatly app.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,203,071
Messages
6,053,375
Members
444,658
Latest member
lhollingsworth

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