+ Reply to Thread
Results 1 to 7 of 7

Vlooking up in Min and Max values and providing the result

  1. #1
    Registered User
    Join Date
    03-11-2015
    Location
    lahore
    MS-Off Ver
    2010
    Posts
    3

    Vlooking up in Min and Max values and providing the result

    I have values as min and max order you can see in attached file. And I need an Index-Match Function or Vlookup to provide the result.
    Column A Column B Column C Column D Column E
    From To Code Lookup Value Vlookup of Index-Match to provide result "Code" after
    looking up values in "From" and "To"
    Attached Files Attached Files
    Last edited by wasiali; 03-13-2015 at 12:41 AM.

  2. #2
    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
    52,917

    Re: Vlooking up in Min and Max values and providing the result

    Try this, copied down...
    =VLOOKUP(F3,$B$3:$D$6,3,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

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,396

    Re: Vlooking up in Min and Max values and providing the result

    Try this formula in G3 and copy down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-11-2015
    Location
    lahore
    MS-Off Ver
    2010
    Posts
    3

    Re: Vlooking up in Min and Max values and providing the result

    @FDibbins. It is working....
    I tried this though
    =INDEX($D$3:$D$6,MATCH(F3>=B3:B6,0),MATCH(F3<=$C$3:$C$6,0))
    yet it did not work.....
    can you a little elaborate that why my formula did not work?

  5. #5
    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
    52,917

    Re: Vlooking up in Min and Max values and providing the result

    INDEX() is made up of 3 arguments...
    Range
    row num
    column num
    =INDEX(range,row-num,colum-num)

    To find the row or column num, we use MATCH(), as you have attempted, but in your version, you are trying to define a min and max range, which doesnt work.
    Match syntax...
    =MATCH(CRiteria,Range,0) 0 is for an exact match

    To use INDEX/MATCH for this, you would use...
    =INDEX($D$3:$D$6,MATCH(F3,$B$3:$B$6))

  6. #6
    Registered User
    Join Date
    03-11-2015
    Location
    lahore
    MS-Off Ver
    2010
    Posts
    3

    Re: Vlooking up in Min and Max values and providing the result

    Ok thanx FDibbins. Both formulas are working, but when Data is sorted in ascending order. Well, thanx again.

  7. #7
    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
    52,917

    Re: Vlooking up in Min and Max values and providing the result

    Happy to help and thanks for the feedback

+ 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. [SOLVED] VLOOKING- another excel document, multi worksheet
    By KevinRamsay in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-21-2013, 06:47 PM
  2. [SOLVED] Comparing values not providing expected results.
    By Max_Taylor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-04-2013, 07:57 PM
  3. vlooking shows only the first match. How to keep on looking?
    By Mega_gerry in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 06-10-2013, 01:54 PM
  4. Excel 2007 : Vlooking up into a vlookup'ed range
    By TT25 in forum Excel General
    Replies: 3
    Last Post: 08-24-2011, 11:55 AM
  5. Replies: 5
    Last Post: 12-17-2010, 06:17 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