+ Reply to Thread
Results 1 to 4 of 4

Return value on multiple criteria without an exact match

  1. #1
    Registered User
    Join Date
    05-26-2015
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    3

    Return value on multiple criteria without an exact match

    Hi I do hope someone can help
    I have a worksheet broken up into multiple road sections, each with its own ADT

    Traffic
    Road Road Name Start End ADT
    563 ACOURT STREET 0 295 55
    179 AHIPAIPA ROAD 0 2547 522
    179 AHIPAIPA ROAD 2547 4027 344
    179 AHIPAIPA ROAD 4027 4845 550


    In another sheet I have a list of just over 2000 work sites, and I would like to populate this with the ADT for the site, taken from the road sections list
    WORKSITES
    Road Road Name Start Work ADT
    179 AHIPAIPA ROAD 700 2 ?
    179 AHIPAIPA ROAD 1858 R ?
    179 AHIPAIPA ROAD 2192 R ?

    For the example above the worksite that starts at 700 Ahipaipa Road would have an ADT of 522, as it is in the first section of Ahipaipa Road
    I have tried various combinations of vlookup, match and index but could not seem to get anything to work

  2. #2
    Registered User
    Join Date
    05-26-2015
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    3

    Re: Return value on multiple criteria without an exact match

    In the image shown below what I am trying to achieve is to import the data in column K into column E
    For the worksite shown as starting at 700 Ahipaipa Road (row 6) to lookup the traffic data series for the ADT, ie
    compare the worksite start in C6 to be greater than or equal to column I AND less than column J, but only where column G matches

    So this would return the data in cell k5

    Example.jpg

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Return value on multiple criteria without an exact match

    copy paste this on E4 :

    =IFERROR(INDEX($K$4:$K$100,MATCH(1,(G4:G100=A6)*(C6>=$I$4:$I$100)*(C6<=$J$4:$J$100),0)),"")

    and press F2 button, and you'll see the formula, then you need to confirm press/hit CTRL+SHIFT+ENTER all together, ENTER alone not workin... IF success you will "{}" bracket that enclosed the formula, this is array formula sign.

    Final step copied formula in E4 after above step, down as necessary

    If not workin, upload your small sample workbook, click "Go Advanced" button and find Paperclip Image Button to attach the file

    regards

  4. #4
    Registered User
    Join Date
    05-26-2015
    Location
    New Zealand
    MS-Off Ver
    2013
    Posts
    3

    Wink Re: Return value on multiple criteria without an exact match

    It does work, thank you so much Azumi
    I just had to do a minor tweak and change the <= to a <

+ 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. Match & return data across multiple sheets, multiple criteria
    By mrsproctor in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2015, 06:01 PM
  2. [SOLVED] Multiple criteria lookup - First match :exact" and second match "Closest"
    By mweichorn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2013, 12:14 PM
  3. Trying to match multiple criteria and return a corresponding value
    By consulttk in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-30-2012, 04:07 PM
  4. Replies: 6
    Last Post: 01-28-2012, 06:59 PM
  5. Replies: 2
    Last Post: 01-28-2012, 05:26 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