+ Reply to Thread
Results 1 to 5 of 5

INDEX & MATCH for approximate matches or combine VLOOKUP & HLOOKUP

  1. #1
    Registered User
    Join Date
    11-26-2013
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2013
    Posts
    21

    Question INDEX & MATCH for approximate matches or combine VLOOKUP & HLOOKUP

    Hi guys,

    I need a way to look up the price if I input width and drop. Attached is a sample file. Sample.xlsx

    If I input a value for width and drop that is not present in the table, is there a way to return the next amount instead?

    Thank you!
    Last edited by michaljireht; 12-01-2014 at 08:12 PM.

  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,728

    Re: INDEX & MATCH for approximate matches or combine VLOOKUP & HLOOKUP

    You can attach files directly to one of your posts - no need to use a separate 3rd party site. It would be better to attach the Excel workbook, rather than a picture - the FAQ describes how to.

    Pete

  3. #3
    Registered User
    Join Date
    11-26-2013
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2013
    Posts
    21

    Re: INDEX & MATCH for approximate matches or combine VLOOKUP & HLOOKUP

    Edited the first post and added attachment. Thanks!

  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,728

    Re: INDEX & MATCH for approximate matches or combine VLOOKUP & HLOOKUP

    Put this formula in H20:

    =INDEX($B$2:$AI$16,IF(H19<$A$2,0,MATCH(H19,$A$2:$A$16))+(COUNTIF($A$2:$A$16,H19)=0),IF(H18<$B$1,0,MATCH(H18,$B$1:$AI$1))+(COUNTIF($B$1:$AI$1,H18)=0))

    Then you can just copy it into I20.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    11-26-2013
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2013
    Posts
    21

    Re: INDEX & MATCH for approximate matches or combine VLOOKUP & HLOOKUP

    It worked! Thanks!

+ 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. Index, Match, Vlookup, Hlookup or what?
    By ovgarcia24 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-22-2014, 07:07 PM
  2. Vlookup with Hlookup or Index with Match?
    By brad_x81 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-08-2013, 06:40 AM
  3. Vlookup, HLookup, Index, Match, oh my! Help me.
    By ryanl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2013, 09:29 PM
  4. Vlookup Multiple Sheets, Approximate Matches
    By maxymab in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2013, 09:50 PM
  5. Vlookup/hlookup/match/index?
    By margggggg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2012, 07:46 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