+ Reply to Thread
Results 1 to 3 of 3

Lookup function to reshape data

Hybrid View

  1. #1
    Registered User
    Join Date
    06-03-2009
    Location
    Mountain View, CA
    MS-Off Ver
    Excel 2003
    Posts
    46

    Lookup function to reshape data

    I have a table like this:
    1 2 3 4 5
    A Y N N Y N
    B N Y Y N Y
    C Y N Y N Y
    D N Y N Y N

    I need it to look like this:

    1 A Y
    1 B N
    1 C Y
    1 D N
    2 A N
    2 B Y
    2 C N
    2 D Y
    3 A N
    3 B Y
    3 C Y
    3 D N

    (etc.)

    can anyone recommend a function to help automate the process?

    i realize it's a combination of hlookup and something else, but i don't know what that something else might be.

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

    Re: Lookup function to reshape data

    Can you clarify. (an example workbook is best). Is 1 A cell A1, and 1 B cell B1, etc?
    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

  3. #3
    Registered User
    Join Date
    06-03-2009
    Location
    Mountain View, CA
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Lookup function to reshape data

    Sorry, my example did not include any cell names.

    So in the first table, cell A1 = 1. Cell B1 = 2. Cell C1 = 3. Meanwhile, Cell A2 = A. Cell B2 = Y. Cell C2 = N.

    And in the second table, Cell A1 = 1. Cell B1 = A. Cell C1 = Y. Cell A2 = 1. Cell B2 = B. Cell C2 = N, etc.

    Does that help clarify?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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