+ Reply to Thread
Results 1 to 8 of 8

need to take one line, with qty of 15 and make 14 more lines with same data

  1. #1
    Registered User
    Join Date
    04-14-2014
    Location
    Lawrenceville
    MS-Off Ver
    Excel 2010
    Posts
    31

    need to take one line, with qty of 15 and make 14 more lines with same data

    I have an upload program for an old ERP program, one line one item is the format. I get an excel file from a warehouse with one line and various qty. for example


    DLM2245/17 DLM2245/17X 1
    DLP2204/17 DLP2204/17X 7
    DLP2249/17 DLP2249/17X 7
    DLV1004/17 DLV1004/17X 147
    DLV1005/17 DLV1005/17X 158
    DLV1009/17 DLV1009/17X 1873

    so line one is fine
    but for line 2 I need to insert 6 more lines
    for line 3 six more lines
    line 4 146 more lines etc etc etc

    I am not sure how I would/could do this. I am not a big excel user, I general do everything in MS Access. but the end user does not want to use MS Access, so they asked me to look into this. Any help is appreciated.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: need to take one line, with qty of 15 and make 14 more lines with same data

    Is that data in two columns, or three? If you attach a sample workbook then we can see how your data is arranged and work out more easily how to give you your desired output. The FAQ describes how to attach a file to one of your posts.

    Pete

  3. #3
    Registered User
    Join Date
    04-14-2014
    Location
    Lawrenceville
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: need to take one line, with qty of 15 and make 14 more lines with same data

    sorry three distinct columns Column A is one model, Column B is the next model and column C is the qty. So I am transferring model DLM2245/17 to model DLM2245/17X Each item is in its own column.

    column A column B Qty
    DLM2245/17 DLM2245/17X 1

    I will upload the file as soon as I see the FAQ
    Last edited by rde55cae; 04-14-2014 at 01:43 PM.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: need to take one line, with qty of 15 and make 14 more lines with same data

    That's not the same as attaching a workbook - I'm reluctant to type your example data into a blank workbook before I can get started to try a few things out.

    Pete

  5. #5
    Registered User
    Join Date
    04-14-2014
    Location
    Lawrenceville
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: need to take one line, with qty of 15 and make 14 more lines with same data

    ok read FAQ, file attached
    Attached Files Attached Files

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: need to take one line, with qty of 15 and make 14 more lines with same data

    See attached file - the parts I've added are in blue. Let me know if you want an explanation of how it works.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    04-14-2014
    Location
    Lawrenceville
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: need to take one line, with qty of 15 and make 14 more lines with same data

    that was perfect. I have used Index Match a lot for doing lookups. But your combination of max and If statement with Match is new. But I believe I can reverse engineer the formulas. Thank you so much. this will help us tremendously.

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,720

    Re: need to take one line, with qty of 15 and make 14 more lines with same data

    You're welcome - glad t be of help.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to get Data in single line From new lines
    By naveenmarapaka in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-05-2013, 05:13 AM
  2. Replies: 2
    Last Post: 11-14-2012, 08:59 AM
  3. Replies: 3
    Last Post: 06-27-2012, 02:58 PM
  4. Data on multiple lines needs to be put into 1 line
    By DMBeer41 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-22-2011, 11:58 AM
  5. move down 23 lines and make the 23rd line height 92.25
    By jaxie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2005, 03:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1