+ Reply to Thread
Results 1 to 2 of 2

Copy row depending on value in another cell

  1. #1
    Registered User
    Join Date
    03-24-2010
    Location
    Oxford
    MS-Off Ver
    Excel 2007
    Posts
    16

    Copy row depending on value in another cell

    Hello,

    I have a spreadsheet that contains ticket data all on one row even if there are different categories of tickets. See example attached

    What i would like to do is have 1 category per row for the same session code. So where you can see in the example J2 has the ticket code of FB005 and has multople category costs in rows K,L,M,N etc

    Is there a way to duplicate the row depending on how many categories there are and transpose the prices?

    Many thanks
    Attached Files Attached Files
    Last edited by jmcgallan; 11-05-2010 at 11:33 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy row depending on value in another cell

    'ROWS TO COLUMNS
    I have a macro that may be "ready to use" for expanding rows of data to multiple rows parsing out the values in one column while duplicating all the others.Run the macro on a copy of your sheet, it will prompt you to ask you to select the first column to split by...select column K. Then answer "yes" to the "titles" question. I tried it on your sheet and it duplicated the rows perfectly.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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