+ Reply to Thread
Results 1 to 12 of 12

Find Bottom 10 values from range of cells in a Row excluding zeros

  1. #1
    Forum Contributor
    Join Date
    08-17-2013
    Location
    Asia
    MS-Off Ver
    Excel 2021
    Posts
    271

    Find Bottom 10 values from range of cells in a Row excluding zeros

    I have positive numeric data in range B6:Z6, [no negative numbers] but it does have duplicates , including zeros, say

    100, 56, 0, 6, 89, 47, 32, 0, 25, 66, 88, 66, 49, 23, 8, 37, 17, 21, 63, 57, 42, 99, 4, and so on

    I need a formula to find Lowest to largest top 10 values excluding ZEROS in a single row.

    Say, data should appear in different cell as

    ROW HEADER ===>>> B C D E F G H I J K
    FORMULA RESULT ===>>> 4 6 8 17 21 23 25 32 37 42

    How to get above ?
    Last edited by analystbank; 12-24-2020 at 06:31 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,413

    Re: Find Bottom 10 values from range of cells in a Row excluding zeros

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    08-17-2013
    Location
    Asia
    MS-Off Ver
    Excel 2021
    Posts
    271

    Re: Find Bottom 10 values from range of cells in a Row excluding zeros

    Sample Workbook attached. Read with #1 Please

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Find Bottom 10 values from range of cells in a Row excluding zeros

    If, say 15occurs twice and is amongst the bottom 10... does it appear ONCE or TWICE in the results?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Find Bottom 10 values from range of cells in a Row excluding zeros

    No answer as yet... This will return duplicates n times

    =AGGREGATE(15,6,$B$6:$Z$6/($B$6:$Z$6>0),COLUMNS($B10:B10))

    in B10, copied across.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Find Bottom 10 values from range of cells in a Row excluding zeros

    Whereas this will return duplicated values only once.

    =AGGREGATE(15,6,$B$6:$Z$6/(($B$6:$Z$6>0)*(COUNTIF($A10:A10,$B$6:$Z$6)=0)),1)

  7. #7
    Forum Contributor
    Join Date
    08-17-2013
    Location
    Asia
    MS-Off Ver
    Excel 2021
    Posts
    271

    Re: Find Bottom 10 values from range of cells in a Row excluding zeros

    Quote Originally Posted by Glenn Kennedy View Post
    If, say 15occurs twice and is amongst the bottom 10... does it appear ONCE or TWICE in the results?
    Once only, some compromise but have to live with it .

  8. #8
    Forum Contributor
    Join Date
    08-17-2013
    Location
    Asia
    MS-Off Ver
    Excel 2021
    Posts
    271

    Re: Find Bottom 10 values from range of cells in a Row excluding zeros

    Quote Originally Posted by Glenn Kennedy View Post
    Whereas this will return duplicated values only once.

    =AGGREGATE(15,6,$B$6:$Z$6/(($B$6:$Z$6>0)*(COUNTIF($A10:A10,$B$6:$Z$6)=0)),1)
    WORKS, PERFECT Sir.

    In the second part of formula, you are referring to A10 [(COUNTIF($A10:A10 ] , If I have some text/value in A10, will it jeoparadise the result ? If not, it is serves my purpose, many thanks. After hearing from you, i will close this thread as SOLVED and add reuptation to your profile.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Find Bottom 10 values from range of cells in a Row excluding zeros

    Providing that whatever is in A10 is NOT one of the numbers that can be returned, there will be no problem.

    If it can, there may be a workaround. Is it a possibility?

  10. #10
    Forum Contributor
    Join Date
    08-17-2013
    Location
    Asia
    MS-Off Ver
    Excel 2021
    Posts
    271

    Re: Find Bottom 10 values from range of cells in a Row excluding zeros

    Sir, No such possibility. A10 could have identifiable header / title what that row comprises.

    Many thanks, once again. I am trying to decipher, what each component of formula is doing. Thanks
    Last edited by AliGW; 12-24-2020 at 07:29 AM. Reason: PLEASE stop quoting unnecessarily!

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Find Bottom 10 values from range of cells in a Row excluding zeros

    Formula/evalute formula will step you through what's happening. If you want/need an explanation, just ask. I will be back in an hour.

  12. #12
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,473

    Re: Find Bottom 10 values from range of cells in a Row excluding zeros

    Array formula , drag right

    HTML Code: 

+ 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. Use min and Max excluding top and bottom values
    By saravnepali in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-24-2020, 12:25 AM
  2. [SOLVED] Take average of a range -- excluding top 1/3 and bottom 1/3 and zero values
    By saravnepali in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-01-2020, 06:29 PM
  3. [SOLVED] Find unique values from range ( populated cells only) & not count zeros or NA errors VBA
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2014, 06:50 AM
  4. [SOLVED] how to find average of a range excluding the zeros.
    By sumesh56 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-06-2013, 10:28 PM
  5. [SOLVED] Average for non-consecutive cells excluding zeros (even when they all contain zeros)
    By pao13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2012, 04:32 PM
  6. Find Min/Max excluding zeros
    By BRISBANEBOB in forum Excel General
    Replies: 4
    Last Post: 04-05-2009, 09:33 PM
  7. Find top/bottom 3 values from a range
    By Andrew-Mark in forum Excel General
    Replies: 10
    Last Post: 08-14-2008, 10:08 AM

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