+ Reply to Thread
Results 1 to 8 of 8

Finding a Value from a range

  1. #1
    Forum Contributor
    Join Date
    09-25-2018
    Location
    Grimsby, UK
    MS-Off Ver
    365
    Posts
    148

    Finding a Value from a range

    I'm trying to find a range from a list.

    eg.

    cell F20 gives me a figure of 5.532


    From that figure I would like to determine which section of a storage tank (course) a support should be fitted. the following are the parameters.

    Course from TO

    5 8.81 11.063

    4 6.38 8.81

    3 3.95 6.38

    2 1.92 3.95

    1 0.75 1.92


    So with that in mind I would like a return (In cell F21) of 3.

    It should be noted that the parameters are subject to change.

    the cells are as follows: Course is in C9, From is in P9 & To is in Q9

    I hope I've explained that well enough

    TIA

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

    Re: Finding a Value from a range

    try this...
    =INDEX(C9:C13,MATCH(A1,Q9:Q13,-1))
    just focuses on the upper values in col Q, assumes your value of 5.532 is in cell A1 and it will return 3 if I'm understand your requirements.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Finding a Value from a range

    @Sambo Kid: I think column Q needs to be in ascending order for the -1 to work.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

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

    Re: Finding a Value from a range

    Special-K, it worked for me when I put the data into col Q in descending order. I used the locations given and the results requested and tried it with 6.5 and it returned 4.

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Finding a Value from a range

    Thats weird, typed in into a new sheet and it worked. Didnt work on a previous sheet.

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: Finding a Value from a range

    @Special-K. Review the help file for the MATCH() function. 3rd argument -1 requires that the data be sorted in descending order. Not to be confused with the (default) option when the 3rd argument is +1, which requires the data to be sorted in ascending order.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    Forum Contributor
    Join Date
    09-25-2018
    Location
    Grimsby, UK
    MS-Off Ver
    365
    Posts
    148

    Re: Finding a Value from a range

    Sambo Kid, Thank you!! that worked. Much Appreciated!

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

    Re: Finding a Value from a range

    You're welcome, glad I could help.

+ 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] Help with finding min. value of range based on another range
    By maym in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-28-2017, 01:52 AM
  2. Copy the range of series by finding/ref of range
    By samumr in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-13-2014, 01:30 AM
  3. Finding range of Cells containing low (range) values....
    By kickme in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-11-2012, 02:56 AM
  4. Replies: 3
    Last Post: 04-01-2012, 05:37 AM
  5. Finding the MAX and MIN values in range within a range
    By vwong107 in forum Excel General
    Replies: 8
    Last Post: 02-21-2012, 03:43 PM
  6. Replies: 0
    Last Post: 01-29-2012, 10:05 PM
  7. Replies: 6
    Last Post: 10-14-2009, 03:01 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