+ Reply to Thread
Results 1 to 6 of 6

Return all values less than or equal to another number, but in order

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    21

    Return all values less than or equal to another number, but in order

    I have a set of numbers in column A with a ranking in column B. C3 contains a number which will be used to gather all numbers from column A less than or equal to C3.

    This formula works, but how can instead the results be in numerical order?

    CSE
    =IFERROR(INDEX($A$1:$A$10,SMALL(IF($B$1:$B$10<=$C$1,ROW($A$1:$A$10)-ROW($A$1)+1),ROWS(D$1:D1))),"")

    On the attach sheet is it possible to return the results in column G versus column D?
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Return all values less than or equal to another number, but in order

    Hi

    Non array, i.e. regular formula in G1 copied down.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Return all values less than or equal to another number, but in order

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  4. #4
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Return all values less than or equal to another number, but in order

    Refer the atatchment
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-15-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Return all values less than or equal to another number, but in order

    Thank you very much. Both of these solutions work very nicely.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Return all values less than or equal to another number, but in order

    Glad to have helped and thanks for the rep.

+ 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] cell not equal to two values, return a third value
    By acp in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-10-2012, 03:37 PM
  2. Need to return a value from a column when two values from are equal
    By Textoph in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-20-2012, 03:16 PM
  3. Replies: 1
    Last Post: 01-15-2012, 06:53 AM
  4. Return all values that equal 0
    By dch27 in forum Excel General
    Replies: 11
    Last Post: 09-09-2009, 02:24 PM
  5. [SOLVED] string values do not equal cells, then return msg
    By Kevin O'Neill in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2005, 05:40 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