+ Reply to Thread
Results 1 to 7 of 7

closest or nearest value (higher or equal)

  1. #1
    Registered User
    Join Date
    01-20-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    15

    closest or nearest value (higher or equal)

    Hello
    Supposing you have a list of numbers in a column, and now you are required to find out the closest or nearest value(higher or equal) to a given value from the list of numbers.
    How do you deal with it?
    Book1.xlsx

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: closest or nearest value (higher or equal)

    Sort column A Largest to smallest and use:
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    03-07-2014
    Location
    North Carolina, USA
    MS-Off Ver
    Excel 2010 and 2013
    Posts
    21

    Re: closest or nearest value (higher or equal)

    If I understand what you are after, the closest value is 108.
    Attached Files Attached Files
    Regards,
    Hansens 0ffice dot com

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: closest or nearest value (higher or equal)

    in an unsorted range try =small(a1:a62,countif(a1:a62,"<"&d1)+1)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    01-20-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: closest or nearest value (higher or equal)

    I need higher or equal, can not be less

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: closest or nearest value (higher or equal)

    One way if using Excel 2010 or later...

    =AGGREGATE(15,6,A1:A62/(A1:A62>=D1),1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  7. #7
    Registered User
    Join Date
    01-20-2014
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: closest or nearest value (higher or equal)

    Thanks martindwilson,
    seems that is works

+ 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. Closest higher value
    By alderdeiry in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 07-31-2015, 05:12 PM
  2. [SOLVED] Finding closest higher value from the list
    By Lem Treursić in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-03-2013, 05:55 AM
  3. [SOLVED] Find Nearest Higher Value
    By artiststevens in forum Excel General
    Replies: 10
    Last Post: 06-11-2012, 03:12 AM
  4. Find two closest values that are higher
    By calebm12 in forum Excel General
    Replies: 11
    Last Post: 06-30-2009, 10:28 AM
  5. [SOLVED] need to select closest match using vlookup if it higher or lower
    By vlookup help pls in forum Excel General
    Replies: 1
    Last Post: 03-01-2006, 03:35 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