+ Reply to Thread
Results 1 to 3 of 3

VLookup/Index/Columns to rows

Hybrid View

  1. #1
    Registered User
    Join Date
    02-16-2010
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    19

    VLookup/Index/Columns to rows

    Please see the attached example that shows exactly what I am looking for.

    Thanks
    Attached Files Attached Files

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

    Re: VLookup/Index/Columns to rows

    First, you'll need to insert a new column in Sheet2, Column C where C2 =A2&B2, dragged down. You can hide that column if you like.

    Next, some of your names on Sheet1 col A have spaces after them. Get rid of them or you won't get matches.

    In Sheet1!B2, dragged across and down
    =INDEX(Sheet2!$D$2:$G$13,MATCH($A2&LEFT(B$1,4),Sheet2!$C$2:$C$13,0),MATCH(RIGHT(B$1,2),Sheet2!$D$1:$G$1,0))
    Does that work for you?

    Alternately, if you don't want to remove those spaces in Col A sheet1,
    =INDEX(Sheet2!$D$2:$G$13,MATCH(TRIM($A2)&LEFT(B$1,4),Sheet2!$C$2:$C$13,0),MATCH(RIGHT(B$1,2),Sheet2!$D$1:$G$1,0))
    Last edited by ChemistB; 02-17-2010 at 06:31 PM.
    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
    02-16-2010
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: VLookup/Index/Columns to rows

    This is great. 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