+ Reply to Thread
Results 1 to 4 of 4

Index/Match with rows and columns as criteria

  1. #1
    Registered User
    Join Date
    01-22-2004
    Location
    Visalia, CA / USA
    MS-Off Ver
    2016
    Posts
    76

    Index/Match with rows and columns as criteria

    I am trying to use an index/match formula to determine the hours to be paid to an employee who works for multiple companies within our organization.

    In the attached sample, I am trying to look up the hours in worksheet Jeb! by the company name (col. A), the employee name, and the hours worked each day of the week (row 3) and pull them into the worksheet Play. You can see my lame attempt in the formula bar.

    Part of my problem is that I'm not sure how - or if you even can - to mix rows and columns as the lookup criteria.

    Can someone help? I'm sure it's pretty straightforward if you know what you're doing! Thanks for any help!
    Attached Files Attached Files
    Bill in CA

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Index/Match with rows and columns as criteria

    Put this array* formula in cell C4 of the Play sheet:

    =IFERROR(INDEX(Jeb!$A$1:$I$104,MATCH(1,(Jeb!$A$1:$A$104=$A4)*(Jeb!$B$1:$B$104=$B4),0),MATCH(C$3,Jeb!$3:$3,0)),0)

    * Note that an array formula needs to be confirmed using the key combination of Ctrl-Shift-Enter (CSE) instead of the usual Enter.

    Format the cell to show one decimal place, then you can copy across and down as required.

    Change the name in cells B4:B7 to see a different set of results.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-22-2004
    Location
    Visalia, CA / USA
    MS-Off Ver
    2016
    Posts
    76

    Re: Index/Match with rows and columns as criteria

    Exactly what I was looking for. Thanks so much!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Index/Match with rows and columns as criteria

    You're welcome, and thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

+ 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] Index Match Multiple Criteria columns and Rows
    By alesha711 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-15-2020, 08:22 PM
  2. [SOLVED] Index & Match, Three Criteria Rows & Columns.
    By Gazsim in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2019, 10:56 AM
  3. Using index match based on two match criteria in different columns
    By LearningByError in forum Excel General
    Replies: 2
    Last Post: 08-02-2018, 01:57 PM
  4. Index Match with Multiple criteria in rows and columns
    By amy22x3 in forum Excel General
    Replies: 1
    Last Post: 06-22-2016, 05:22 PM
  5. Replace Index Match with VBA - Multiple Criteria - Thousands of rows and columns
    By jaybrd1 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 04-30-2014, 08:39 AM
  6. VLookup or Index/match searching rows instead of columns or multiple criteria
    By Groovicles in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-16-2013, 05:00 PM
  7. [SOLVED] INDEX+MATCH with multiple criteria across both rows and columns
    By george_k in forum Excel General
    Replies: 3
    Last Post: 10-26-2012, 04:11 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