+ Reply to Thread
Results 1 to 3 of 3

Index/match/hlookup?

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    MS Office 2010
    Posts
    64

    Index/match/hlookup?

    Hey guys,

    I'm working on figuring out a formula. In sheet1 have table with a list of products and a bunch of attributes and their corresponding values. However, in column A, the product number is duplicated down the list with each new attribute that is used, and there are shared attributes between different products. In sheet2, i have a table of how I want to transpose that data so that only unique attribute types are going across the top, and product numbers arent duplicated in column A. Also, I want the corresponding data for each attribute to show up in the correct cell. I have attached a spreadsheet with the example tables. Keep in mind, this is a small-scale version of my problem, the real one will be applied to thousands of cells.

    I would very much appreciate any help/pointers here.

    Thanks
    Attached Files Attached Files
    Last edited by Shadefalcon; 08-16-2013 at 08:35 AM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Index/match/hlookup?

    A pivot table without any filled in 'values' will give you unique attribute types and product numbers.
    http://www.cpearson.com/excel/pivots.htm

    Copy and paste these table headings to get the framework as depicted in your example

    Then use
    =IFERROR(INDEX(Sheet1!$C$1:$C$20,MATCH($A2&B$2,Sheet1!$A$1:$A$20&Sheet1!$B$1:$B$20,0)),"")

    ..confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    See attached sheet for example
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    09-26-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    MS Office 2010
    Posts
    64

    Re: Index/match/hlookup?

    Thank you, that did the trick.

+ 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. [SOLVED] hlookup, match or index?
    By Nathan1001 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-03-2013, 03:58 PM
  2. HLOOKUP using MATCH and INDEX
    By cocostar88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-22-2013, 09:50 AM
  3. HLOOKUP and INDEX/MATCH?
    By 01FASTWS6 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2012, 01:27 PM
  4. Index and Match or Hlookup
    By pauldaddyadams in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2011, 04:37 AM
  5. Hlookup and Index match?
    By geng in forum Excel General
    Replies: 4
    Last Post: 12-05-2010, 11:21 PM

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