+ Reply to Thread
Results 1 to 10 of 10

Find lowest 5 values in a row, left to right

Hybrid View

  1. #1
    Registered User
    Join Date
    02-07-2014
    Location
    Little Elm, Tex
    MS-Off Ver
    Excel 2010
    Posts
    7

    Find lowest 5 values in a row, left to right

    I have a row of 10 numbers (I2:R2) that I need to find the first 5 lowest values (left to right).
    I can find the 5 smallest, but if some numbers are equal, it will find duplicates

    How does one find the first 5 smallest in a range??

    Thank you!
    Mark
    Last edited by TallTex6; 12-31-2014 at 07:37 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: a little help please

    Row\Col
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    R
    S
    T
    U
    1
    2
    2
    5
    8
    6
    1
    1
    7
    10
    7
    8
    1
    T2: =SMALL($I$2:$R$2, COUNTIF($I$2:$R$2, "<=" & I4) + 1)
    3
    2
    4
    5
    5
    6
    6
    7
    Entia non sunt multiplicanda sine necessitate

  3. #3
    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: a little help please

    Hi and welcome to the forum.
    Unfortunately your post does not comply with Rule 1 of our Forum
    RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    I'll change the title for you on this occasion but please note for the future. To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    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.

  4. #4
    Registered User
    Join Date
    02-07-2014
    Location
    Little Elm, Tex
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: a little help please

    Sorry about that!
    I'll make sure next time.
    Mark

  5. #5
    Registered User
    Join Date
    02-07-2014
    Location
    Little Elm, Tex
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: a little help please

    shg, thanks for the idea...it's a start. But in your example, the first 5 lowest left to right would be 2,5,6,1,1 It's ok to have duplicates, but for each duplicate it has to count as one of the 5 lowest...so if I had 1,1,1,1,2,2,2,2,3,3. The result needs to be 1,1,1,1,2

    Thank you,
    Mark

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Find lowest 5 values in a row, left to right

    So what should the result be in the example I posted?

  7. #7
    Registered User
    Join Date
    02-07-2014
    Location
    Little Elm, Tex
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Find lowest 5 values in a row, left to right

    lowest 5, moving left to right would be 2,5,6,1,1

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,625

    Re: Find lowest 5 values in a row, left to right

    Pl see file.
    If A13:J13 is data range
    For Row wise results use then drag down
    =IFERROR(INDEX($A$13:$J$13,SMALL(IF($A$13:$J$13<=SMALL($A$13:$J$13,5),COLUMN($A$13:$J$13),""),ROW(A1))),"")
    For Column wise results use then drag across
    =IFERROR(INDEX($A$13:$J$13,SMALL(IF($A$13:$J$13<=SMALL($A$13:$J$13,5),COLUMN($A$13:$J$13),""),COLUMN(A1))),"")
    ARRAY formula is used

    To enter ARRAY formula
    Paste the formula
    Press F2
    Press Ctrl+Shift+Enter keys together.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-07-2014
    Location
    Little Elm, Tex
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Find lowest 5 values in a row, left to right

    Thank you!
    Mark

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,625

    Re: Find lowest 5 values in a row, left to right

    if satisfied , mark the thread solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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