+ Reply to Thread
Results 1 to 4 of 4

look up with multiple vertical & horizontal criteria and find closest approximation

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Greece
    MS-Off Ver
    Excel 2013
    Posts
    4

    look up with multiple vertical & horizontal criteria and find closest approximation

    so i am trying to create a formula where i can look up for a value by using multiple criteria. i want also to get the closest approximation value if one of the criteria is not met.

    So my Lookup table is this:

    Day Name Intervals Week 15 Week 16 Week 17 Week 18 Week 19 Week 20
    Wed John 21:00 14.8 17 18.3 19 21.4 22.1
    Wed Maria 17:00 14.8 17 4.8 4 4.6 4.5
    Mon Stacey 23:00 14.8 17 3 3.4 3.4 4.2
    Wed Howard 23:00 14.8 17 3 3.4 3.4 4.2
    Mon Howard 23:00 14.8 17 3 3.4 3.4 4.2
    and the table i want to return values to (Column E) is this:

    Name Time Slot Week Day Value
    John 10:00 Week 19 Wed
    Maria 11:00 Week 19 Wed
    Alissa 11:00 Week 19 Thu
    Howard 13:00 Week 19 Wed
    Stacey 13:00 Week 20 Mon


    What i want is to return the "Value" from the above table based on the criteria: Name Match, Timeslot Match (closest approximation if not exact value), Week Match and Day Match.

    the sumproduct formula works great, but its not suitable for finding approximations.

    the index match formula returns me either the exact value or zero (Ctrl+Shift+Enter) =IFERROR(INDEX($D$2:$I$6,MATCH(1,(A2=$B$2:$B$6)*(B2<=$C$2:$C$6)*(D2=$A$2:$A$6),0),MATCH(C2,$D$1:$I$1,0)),0)

    for all the zeros, however, i want the closest approximation in the Timeslot match (+ or -, depending on whats closer)

    in E1 i expect to see 21.4
    in E2 i expect to see 4.6
    in E3 i expect to see nothing (0)
    in E4 i expect to see 3.4

    etc

    Thanks!

  2. #2
    Registered User
    Join Date
    10-10-2012
    Location
    Greece
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: look up with multiple vertical & horizontal criteria and find closest approximation

    no clue anyone?

  3. #3
    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,061

    Re: look up with multiple vertical & horizontal criteria and find closest approximation

    No-one will want to retype all your data, not quite knowing which cells contain what data. Please attach a sample workbook. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    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

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

    Re: look up with multiple vertical & horizontal criteria and find closest approximation

    I offer as understood your question.
    Attached Files Attached Files

+ 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. Searching matching vertical and horizontal criteria in multiple sheets
    By Bloozntooz in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-14-2015, 04:12 PM
  2. [SOLVED] Summing Data with Multiple Criteria on Horizontal and Vertical Axis'
    By tlscowden in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-13-2015, 03:11 PM
  3. [SOLVED] Matching multiple criteria in two books, one data is horizontal, the other is vertical.
    By udrmichelle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-18-2015, 04:58 PM
  4. [SOLVED] 3 criteria for horizontal and vertical matching
    By mator in forum Excel General
    Replies: 5
    Last Post: 12-24-2014, 07:19 AM
  5. Replies: 5
    Last Post: 06-06-2013, 05:12 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