+ Reply to Thread
Results 1 to 3 of 3

Breaking out records based on qty

  1. #1
    Registered User
    Join Date
    11-09-2007
    Posts
    1

    Breaking out records based on qty

    Hi everyone,

    I think what I want to do should be simple, but I can't figure it out so maybe you experts can help!!

    I have a simple table, with 3 columns: sku, desc, and qty. I have about 5000 records with qty's from 1 to 100. What I need as a result is to read the qty field and produce that many sku's on different lines. Here is an example

    beginning with:

    sku desc qty
    m51130 blue 2
    m31131 red 5

    to result in:

    sku desc
    m51130 blue
    m51130 blue
    m31131 red
    m31131 red
    m31131 red
    m31131 red
    m31131 red

    Thanks in advance for your help!!!

  2. #2
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373
    Assuming the table in columns A:C, the data starting in row 2, this code writes the result in E:F, starting in row 2.

    Please Login or Register  to view this content.
    HTH
    lecxe

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    try
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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