LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Instert Rows Based on Cell Value


Hello,

I could really use a hand on this one.

I have multiple lines of different products ordered by differen
people. In each row in excel it shows the product that was ordered a
well as the quantity and some other information.

What I need to do is expand each row based on the quantity value.
Essentially if someone ordered 4 of a particular product i want a macr
to add three rows below it.

for i.e.

this:

Invoice # / Date / Quantity/
2532434 / 11/02/ 5

would turn into this:

2532434 / 11/02 / 1
2532434 / 11/02 / 1
2532434 / 11/02 / 1
2532434 / 11/02 / 1
2532434 / 11/02 / 1

so the macro will add 4 rows below the 1st to make a total of 5 rows

I essentially want to expand the quantity sold so each row shows
quantity of 1

can anyone help me out with that

--
derekra
-----------------------------------------------------------------------
derekrap's Profile: http://www.excelforum.com/member.php...fo&userid=2065
View this thread: http://www.excelforum.com/showthread.php?threadid=48101

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can no longer instert symbol in text box Rutabaga Excel Discussion (Misc queries) 1 March 25th 09 03:10 PM
Instert Rows Based on Cell Value derekrap Excel Programming 0 November 2nd 05 06:40 PM
Function to del rows based on cell value Reed Excel Worksheet Functions 1 June 7th 05 09:25 PM
Macro / VB / Instert Date Question Spyder Excel Programming 2 March 25th 05 05:31 PM
Deleting Rows based on text in cell & formatting cell based on text in column beside it Steve Excel Programming 4 February 26th 04 03:31 PM


All times are GMT +1. The time now is 07:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"