+ Reply to Thread
Results 1 to 3 of 3

vlookup value with condition of another cell being closest to specific value in a row

  1. #1
    Registered User
    Join Date
    12-15-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    Angry vlookup value with condition of another cell being closest to specific value in a row

    Hi all, im new here so be gentle.

    So. I'm familiar with vlookup functions but i have a situation where i need to look beyond matching a specific cell with one simple criteria.

    The additional condition is to return value in column C where the matched cell is found in column A (where there are multiple instances of that matched cell is in the data) but of those matched to return value from column C, column B must be closest to the value 10 of all occurrences (higher or lower is fine, just the closest).

    The value i want returned from the list in F is listed beside it in column G.

    I figure the method will use INDEX and MATCH but I'm not too familiar with these functions :S

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: vlookup value with condition of another cell being closest to specific value in a row

    Using your posted workbook, this regular formula, copied down, begins the list of
    ...Col_C values
    ...that correspond to the Col_B Stock value closest to 10
    ...where the Col_A SKU value matches the Col_F SKU
    Please Login or Register  to view this content.
    Note: In the case of Col_B ties, the first encountered is used.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    12-15-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: vlookup value with condition of another cell being closest to specific value in a row

    Ron, that works amazingly well

    Thanks a million!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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