+ Reply to Thread
Results 1 to 4 of 4

Finding number with range of values

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    india
    MS-Off Ver
    MS 365
    Posts
    31

    Finding number with range of values

    Hi
    Friends

    i want a solution for this problem, to find a number with in a range and return the both values that is upper and lower values of range to other cells


    for example:

    column A contains values 1,5,10,15,20,25
    column B contains values 100,200,300,400,500,600

    if i gave a value of 265 then it should return 5 and 10 to two different cells in excel

    Please kindly help with this isue i will be very thankful to you all
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-22-2014
    Location
    Riyadh
    MS-Off Ver
    2010
    Posts
    88

    Re: Finding number with range of values

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Finding number with range of values

    This uses an inputbox for the input and places the output to C1 and D1. Hope that helps.

    Please Login or Register  to view this content.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Finding number with range of values

    For Value 1

    =MAX(IF(B1:B6<=C11,A1:A6))

    For Value 2

    =MIN(IF(B1:B6>C11,A1:A6))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Last edited by AlKey; 08-12-2014 at 12:23 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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. 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
  2. finding a number in a range
    By mindfullsilence in forum Excel General
    Replies: 14
    Last Post: 04-22-2008, 09:52 PM
  3. Finding number of occurances of values
    By JackRnl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2006, 07:53 PM
  4. Finding the row number of first row in a selected range
    By Eamon Wall in forum Excel General
    Replies: 1
    Last Post: 10-10-2005, 08:05 PM
  5. [SOLVED] Finding number of values in a range on a per year basis
    By LyleB_Austin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-20-2005, 05:05 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