+ Reply to Thread
Results 1 to 4 of 4

Analyzing cell contents, inserting a number of rows, and transposing

  1. #1
    Registered User
    Join Date
    10-14-2010
    Location
    Portland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Analyzing cell contents, inserting a number of rows, and transposing

    Hello Forum members - I am not a programming expert but would appreciate any help on the following

    In the attached spreadsheet I am trying to turn the 'Before' tab into the 'After' tab

    The steps I want to complete are:

    On the ‘Before’ tab
    In column H there is a comma separated string of product numbers
    Steps
    1.Count the number of product numbers - 1 (number of commas)
    2.Duplicate that number of rows below the current row
    3.Transpose all those product numbers so one is in each of the rows created (in column H)
    4.Duplicate those contents of column H into column A
    5.Go to the next row, column H and repeat from step 1
    6.Until reaching the end of the spreadsheet

    The end results are shown on the ‘After’ tab

    The number of products in column H will ALWAYS be >=1
    Attached Files Attached Files
    Last edited by james_black; 10-15-2010 at 11:36 PM. Reason: Solved

  2. #2
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Re: Analyzing cell contents, inserting a number of rows, and transposing and copying

    Here you go:

    Please Login or Register  to view this content.
    please find attached spreadsheet for example.
    Attached Files Attached Files
    --
    Regards
    PD

    ----- Don't Forget -----

    1. Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks

    2. Thank those who have helped you by Clicking the scales above each post.

    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

  3. #3
    Registered User
    Join Date
    10-14-2010
    Location
    Portland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Analyzing cell contents, inserting a number of rows, and transposing and copying

    Thank you SO much - it works perfectly!

    You have really saved me a lot of time

  4. #4
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Re: SOLVED - Analyzing cell contents, inserting a number of rows, and transposing

    No problem james_black

    Glad I could help.

    Can you please mark this post as solved by:

    - Go to original post
    - Click Edit
    - Click Go Advanced
    - Select [SOLVED] from the prefix dropdown
    - Save Changes

    Cheers! & have a great weekend!

+ 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