+ Reply to Thread
Results 1 to 6 of 6

Complex reordering of cells from one spreadsheet into another

  1. #1
    Registered User
    Join Date
    12-03-2014
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    2

    Complex reordering of cells from one spreadsheet into another

    Hello

    I need to create a new worksheet from an original worksheet but the new worksheet needs to be ordered in a specific way.

    My original worksheet has columns "primer", "DNAid", "allele1", allele2"

    Primer DNAid allele1 allele2
    TB136 1 333 333
    TB136 2 321 333
    TB136 3 333 333
    TB117 3 106 108
    TB117 5 106 106
    TB117 2 106 108
    TB187 3 166 176
    TB187 1 166 176
    TB187 2 166 176
    TB109 5 119 123
    TB109 4 119 119
    TB109 1 119 119

    I need to interrogate the data somehow to help me automatically create a new spreadsheet which presents the data in a different way.
    My new spreadsheet has a primary column of "DNAid" and the "primer" column has now been separated by each individual primer.
    DNAid TB136 TB117 TB187 TB109
    allele1 allele2 allele1 allele2 allele1 allele2 allele1 allele2
    1 333 333 166 176 119 119
    2 321 333 106 108 166 176
    3 333 333 106 108 166 176
    4 119 119
    5 106 106 119 123

    Is there a function or formula that I can use to do this?

    I'd appreciate your help as last time I did it manually and wasted 3 days of my life as I have thousands of rows.

    Regards
    Poppy
    Last edited by Poppy34; 12-03-2014 at 07:16 PM.

  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,731

    Re: Complex reordering of cells from one spreadsheet into another

    Can you attach a sample workbook, so we don't have to type all that data ourselves before then considering how to solve your problem - the FAQ describes how to attach a file to one of your posts.

    Pete

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Complex reordering of cells from one spreadsheet into another

    I recommend selecting the data range, and using Insert Pivot Table.

    DNAid as Row, Primer as Columns, Allele1 and Allele2 as Value.

    You could be done in seconds.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Registered User
    Join Date
    12-03-2014
    Location
    Australia
    MS-Off Ver
    2007
    Posts
    2

    Talking Re: Complex reordering of cells from one spreadsheet into another

    Thanks

    I can't believe I wasted so much time because I already tried a Pivot table and I couldn't get it to do what I wanted. Just a case of knowing which part of the table to throw the columns into and changing the values section to product. ARRRGH. Thanks for saving me.

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Complex reordering of cells from one spreadsheet into another

    No problem. I'm no fan of PivotTables myself, but sometimes they're just the right tool for the job.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Complex reordering of cells from one spreadsheet into another

    This is what a Pivot table can quickly present. Where there are no values for the intersections of column and row the cells will be blank.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Complex spreadsheet
    By Aarondempseynm in forum Excel General
    Replies: 2
    Last Post: 12-24-2013, 08:20 AM
  2. How To Chart Complex Spreadsheet
    By ajocius in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-21-2013, 01:51 PM
  3. [SOLVED] Reordering cells to another sheet
    By MKettu in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-12-2012, 08:08 AM
  4. Streamlining a complex spreadsheet
    By redkilner in forum Excel General
    Replies: 3
    Last Post: 03-02-2012, 06:47 PM
  5. Complex Spreadsheet build request
    By Mike Church in forum Excel General
    Replies: 1
    Last Post: 02-04-2012, 01:05 AM

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