+ Reply to Thread
Results 1 to 10 of 10

Table lookup for exact match and match between range

  1. #1
    Registered User
    Join Date
    02-16-2018
    Location
    NYC,USA
    MS-Off Ver
    2013
    Posts
    3

    Table lookup for exact match and match between range

    I am hoping someone can help with this problem. I am looking to fill in column d(yellow) with payouts based on a performance% being within a range(columns H&I). Normally I would do this by using index(J:J,match(c4,H:H,1)) but, I need to look up multiple scales in this scenario (ie. receiving and shipping). I have tried doing this as an array index(g4:J21, match(1,(b4=g:g)*(c4=h:h),1),4) but, I am not having success with this. I think the problem is I need to exact match b4 to column g while also doing a less than match for c4 to column h. The only other way I can think of is separating the tables and having nested if statements but, I have about 28 different scales to reference. Thank you for any help.

    Table lookup question.jpg
    Attached Files Attached Files
    Last edited by chris4mayor; 02-16-2018 at 02:34 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Table lookup for exact match and match between range

    Welcome to the forum!

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-16-2018
    Location
    NYC,USA
    MS-Off Ver
    2013
    Posts
    3

    Re: Table lookup for exact match and match between range

    updated, thank you

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Table lookup for exact match and match between range

    Like this? D4, copied down:

    =SUMPRODUCT(($G$4:$G$21=B4)*($H$4:$H$21<=C4)*($I$4:$I$21>C4)*$J$4:$J$21)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,294

    Re: Table lookup for exact match and match between range

    AGGREGATE function
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Table lookup for exact match and match between range

    Try this:

    =INDEX($J$4:$J$21,MATCH(B4&C4,INDEX($G$4:$G$21&$H$4:$H$21,0),1))

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Table lookup for exact match and match between range

    Or this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Table lookup for exact match and match between range

    Or a simple SUMIFS formula:

    =SUMIFS(J$4:J$21,G$4:G$21,B4,H$4:H$21,"<="&C4,I$4:I$21,">"&C4)

  9. #9
    Registered User
    Join Date
    02-16-2018
    Location
    NYC,USA
    MS-Off Ver
    2013
    Posts
    3

    Re: Table lookup for exact match and match between range

    Thank you all for your help, Czeslaw your solution seems to work best with the entire data set. AliGW i had tried a solution similar and with both of ours on the larger data set the values come back the as one value for the entirety of the table, not sure what is up. Thank you for your help.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Table lookup for exact match and match between range

    Enter the formula with CTRL+SHIFT+ENTER and see if that makes a difference. It worked as is on your sample file.

+ 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] Create drop down list with range of values that is exact match from a table
    By glenwalcuch in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-22-2015, 03:09 PM
  2. Replies: 3
    Last Post: 06-17-2013, 12:37 PM
  3. [SOLVED] Exact Value match in Lookup function
    By cdjindia in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-28-2012, 08:48 AM
  4. Replies: 5
    Last Post: 02-24-2011, 11:26 AM
  5. Replies: 2
    Last Post: 07-02-2006, 05:50 PM
  6. [SOLVED] Match - Exact - Lookup?
    By Danny in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-27-2006, 05:10 PM
  7. Lookup - Exact Match
    By Anth in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2005, 06:08 AM

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