+ Reply to Thread
Results 1 to 5 of 5

Look up a value with multiple criteria. Theoretically should be a simple INDEX/MATCH!

  1. #1
    Registered User
    Join Date
    02-13-2012
    Location
    London, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Look up a value with multiple criteria. Theoretically should be a simple INDEX/MATCH!

    This is not that difficult, I am certain... In fact, I am pretty sure I had the formula and then my computer died and now I can’t figure it out again.

    I believe it should be a fairly straightforward INDEX/MATCH formula; I want to return a value from an array on a separate worksheet, using two criteria. More specifically, the two criteria are an employee name and a date and the value being returned would be the info on whether they worked that day, were off, were on vacation, etc. (See attached example)

    What I thought was working, 30 seconds prior to my computer battery dying, was something along the lines of:

    Please Login or Register  to view this content.
    However, now that formula seems to be returning random values; values that are found in the array, but are not from the correct cell. I have left the formula in one column of the attached example so you can see what I mean.

    I really appreciate this forum and thank you all in advance for your help!

    P.S. I am using Excel 2007
    Attached Files Attached Files

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Look up a value with multiple criteria. Theoretically should be a simple INDEX/MA

    kcharles,

    In Sheet1 cell B3, use this formula and copy over and down:
    =INDEX(Sheet2!$B$2:$I$15,MATCH($A3,Sheet2!$A$2:$A$15,0),MATCH(B$2,Sheet2!$B$1:$I$1,0))
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    02-13-2012
    Location
    London, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Look up a value with multiple criteria. Theoretically should be a simple INDEX/MA

    Hmmm... I tried it, but the same problem remains- it appears to return random values from the array.

    The excel file I attached was just a little snippet of the real spreadsheets, and I had selected to remove some columns/rows that did not pertain to the formula, but now I am wondering if it is these columns and rows that are interfering somehow? So I have reattached the file with the actual spreadsheets (minus anybody's last names, etc). Again, I would like the employees work status for the given days read from "Calendar" and returned to the appropriate cell in the "BF Schedule" sheet.

    I appreciate your help and effort!



    Quote Originally Posted by tigeravatar View Post
    kcharles,

    In Sheet1 cell B3, use this formula and copy over and down:
    =INDEX(Sheet2!$B$2:$I$15,MATCH($A3,Sheet2!$A$2:$A$15,0),MATCH(B$2,Sheet2!$B$1:$I$1,0))
    Attached Files Attached Files

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Look up a value with multiple criteria. Theoretically should be a simple INDEX/MA

    kcharles,

    Attached is a modified version of your Example2 workbook. In sheet 'BF Schedule' cell E3 and copied over and down is this formula:
    =INDEX(CALENDAR!$E$16:$AJ$442,MATCH($B3,CALENDAR!$C$16:$C$442,0),MATCH(E$2,CALENDAR!$E$13:$AJ$13,0))

  5. #5
    Registered User
    Join Date
    02-13-2012
    Location
    London, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Talking Re: Look up a value with multiple criteria. Theoretically should be a simple INDEX/MA

    Thanks, tigeravatar!

    That worked! And I believe I realize now why it wasn't working before -so I even learned something

    Thanks again

+ 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