+ Reply to Thread
Results 1 to 10 of 10

VLOOKUP Formula -- maybe can combine with MATCH or change entirely

  1. #1
    Registered User
    Join Date
    09-28-2015
    Location
    U.S.
    MS-Off Ver
    2007
    Posts
    7

    VLOOKUP Formula -- maybe can combine with MATCH or change entirely

    The below formula works perfectly if the amount in cell G3 is exact. If, it is higher, but not as high as the next number, it chooses the lower, which I now understand is how that works with VLOOKUP. How can I alter the formula so that it chooses the next highest value if the amount in cell G3 is not exact?

    =VLOOKUP(G3,'98 Title Ins Search'!A1:C490,2,FALSE)

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,683

    Re: VLOOKUP Formula -- maybe can combine with MATCH or change entirely

    If I understand you correctly change false to true but your reference data will need to be in ascending order.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: VLOOKUP Formula -- maybe can combine with MATCH or change entirely

    Try this...
    A
    B
    C
    D
    2
    2
    a
    5
    c
    3
    4
    b
    4
    6
    c
    5
    8
    d
    6
    10
    e
    7
    12
    f
    8
    14
    g
    9
    16
    h

    D2=INDEX($B$2:$B$9,IFERROR(MATCH(C2,$A$2:$A$9,0),MATCH(C2,$A$2:$A$9)+1))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    09-28-2015
    Location
    U.S.
    MS-Off Ver
    2007
    Posts
    7

    Re: VLOOKUP Formula -- maybe can combine with MATCH or change entirely

    Thanks, data is already in ascending order. Making it TRUE or FALSE makes no difference in outcome.

  5. #5
    Registered User
    Join Date
    09-28-2015
    Location
    U.S.
    MS-Off Ver
    2007
    Posts
    7

    Re: VLOOKUP Formula -- maybe can combine with MATCH or change entirely

    Wait, correction. It does make a difference, but the difference I need is for it to move up to the next highest value versus the lower. For example it will make an exact match if cell G3 is 71,000, the search area will add the correct value I need for that number. But, if cell G3 is say 71,500 it will give me the same value as if at 71,000 and I want it to bump up to the value as if it were 72,000, which is the next highest number in the search area range. If that makes any sense at all.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: VLOOKUP Formula -- maybe can combine with MATCH or change entirely

    Did you try my suggestion on your actual data?

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: VLOOKUP Formula -- maybe can combine with MATCH or change entirely

    Is it possible to have the column in descending order.

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: VLOOKUP Formula -- maybe can combine with MATCH or change entirely

    Pl see attached file. Example is worked out. Suitably change to your requirement.
    Instead of Vlookup Use the Below formula
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-28-2015
    Location
    U.S.
    MS-Off Ver
    2007
    Posts
    7

    Re: VLOOKUP Formula -- maybe can combine with MATCH or change entirely

    I don't know how to do what you just did for what I need. I've attached the related file. The cell highlighted in red is myproblem. As you can see, if the number is exact it is fine. If the number is close it chooses the closest lowest and I want it to choose the next highest.
    Last edited by Spinette; 11-11-2015 at 08:53 AM.

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: VLOOKUP Formula -- maybe can combine with MATCH or change entirely

    ARRAY formula in F21
    Please Login or Register  to view this content.

+ 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. How to combine IF, VLOOKUP and MATCH?
    By Shreyaanand in forum Excel General
    Replies: 3
    Last Post: 09-23-2015, 05:55 AM
  2. How do I match and combine data using VLookup?
    By sunshine123 in forum Excel General
    Replies: 11
    Last Post: 05-04-2015, 11:19 PM
  3. [SOLVED] #Value error for hlookup, match and Index combine formula
    By Pi* in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-05-2015, 07:09 PM
  4. [SOLVED] INDEX & MATCH for approximate matches or combine VLOOKUP & HLOOKUP
    By michaljireht in forum Excel General
    Replies: 4
    Last Post: 12-01-2014, 08:41 PM
  5. [SOLVED] Match & Vlookup combine?
    By Laurianne03 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-07-2013, 04:20 PM
  6. Combine INDEX+MATCH functions with INDIRECT formula
    By ABSTRAKTUS in forum Excel General
    Replies: 4
    Last Post: 04-12-2011, 04:16 PM
  7. How to combine IF, VLOOKUP and MATCH?
    By stormracela in forum Excel General
    Replies: 9
    Last Post: 05-17-2010, 03:17 AM

Tags for this Thread

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