+ Reply to Thread
Results 1 to 6 of 6

Reverse Data in Columns

  1. #1
    Registered User
    Join Date
    05-16-2009
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Talking Reverse Data in Columns

    Hope I can explain this well. I have a list of search words in column A and in column B is the products that address that particular search word and the products are separated by a comma in column B. Each product is listed multiple times under various search words.

    What I am hoping to do is reverse this so that the product is listed in column A and the related search words are listed under that product in column B.

    Any suggestions?

    Thanks,

    Tangoland
    Last edited by tangoland; 05-18-2009 at 08:18 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    re: Reverse Data in Columns

    Welcome to the forum.

    Post a workbook and show what you have and what you want.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-16-2009
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2003
    Posts
    3

    re: Reverse Data in Columns

    Sample A symptoms B remedies.xls

    here is the attachment of a sample of what i am looking for help with.

    column A has symptoms and column B lists the remedies for that symptom.

    what i need to do is reverse this making the remedy the main list and the corresponding symptoms listed after each remedy.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    re: Reverse Data in Columns

    best i can do is to split remedies by using test to columns
    copy paste those columns one below the other repeat for symptoms then run a pivot table report on result sheet 1
    or
    use text to columns and just run pivot on result see sheet 2 this also shows that you have duplicates in list e.g.
    Big/Small Elixer features 2x infor hunger
    sheet 2
    Attached Files Attached Files
    Last edited by martindwilson; 05-16-2009 at 05:42 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

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

    Re: Reverse Data in Columns

    This utilizes a String Concatenation UDF, so macros will have to be enabled for this to stay updated on its own. also, you have some typos in your upper section that should be fixed up.

    Anyway. With the UDF installed, you can use a the =StringConcat() formula to analyze your primary list above and it will create the second table for you.

    It's an array formula, so if you make edits to it, press CTRL-SHIFT-ENTER to confirm the changes, not just ENTER. Just pressing ENTER will cause the braces { } to disappear and the array will break. If that happens, press F2, then CTRL-SHIFT-ENTER to reactivate it. Then you can copy the newly edited formula down the rest of the column.

    By the way, I love RPG games... what game is this from?
    Attached Files Attached Files
    _________________
    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!)

  6. #6
    Registered User
    Join Date
    05-16-2009
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Reverse Data in Columns

    Thanks to all the support and...

    Big shout out to JBeaucaire for helping me out!!

+ 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