+ Reply to Thread
Results 1 to 5 of 5

Creating a Table from Multiple Columns with Multiple results

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Creating a Table from Multiple Columns with Multiple results

    Can I compile multiple (nonconsecutive) columns into 1 field in a pivot table? I have attached a simple example of what I have and want. Column A has a list of compounds, Columns B,D,F and H list the tests needed for that compound. (In actuallity there are maybe 100 different tests although never more than 6 for a single compound.)
    I want to pivot table (or through VBA or Formula) the Test followed by the compounds that are tested with that test. Thanks in advance.

    Had this moved from General because I believe will need a VBA solution. Thanks!
    Attached Files Attached Files
    Last edited by ChemistB; 04-16-2010 at 09:04 AM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  2. #2
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295

    Re: Pivot Table on Multiple Columns

    Pivot tables deal in numeric data (in the data section that is - ie sums, averages, etc), what you will need is someone more capable with VBA than I am to prepare a script to re-summarise your table.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Creating a Table from Multiple Columns with Multiple results

    Any ideas on how to do this?

  4. #4
    Valued Forum Contributor
    Join Date
    07-29-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    534

    Re: Creating a Table from Multiple Columns with Multiple results

    One possible way to do it.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Creating a Table from Multiple Columns with Multiple results

    Perfect WHER, just what I needed. Thanks

+ 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