+ Reply to Thread
Results 1 to 5 of 5

Top 5 values if they meet a criteria

  1. #1
    Registered User
    Join Date
    04-13-2017
    Location
    Denver, CO
    MS-Off Ver
    2016MC
    Posts
    2

    Lightbulb Top 5 values if they meet a criteria

    Hello

    I have data in row 7 that are numbers ranging between 0 and 50. I am trying to add the top 5 numbers that fall between 0 and 20 and the top 8 numbers that fall between 20 and 50.

    I would rather excel list the top 5 numbers that are between 0 and 20 and the top 8 numbers that are between 20 and 50. But I'm ok if it just adds them as well. Please let me know what formula to use.

    Thanks,
    Diana

  2. #2
    Forum Contributor
    Join Date
    05-06-2016
    Location
    Cluj, Romania
    MS-Off Ver
    2007-2010
    Posts
    220

    Re: Top 5 values if they meet a criteria

    Hi,

    I'm not sure if I understood what you want exactly.
    An attached file would have been more useful.

    for top 5 use that (array formula, press Ctrl+Shift+Enter when inserted) and drag down 5 cells
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    for top 8, and drag down 8 cells
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    see attached
    Attached Files Attached Files

  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: Top 5 values if they meet a criteria

    Hi and welcome to the forum.

    Assuming the numbers are in A7:T7 then in say A10 enter the array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note this is an array formula and should be entered with Ctrl-Shift-Enter. When it's entered you'll see the { } parentheses surrounding it.
    Now copy A10 to A11:A14

    Do something similar in say B10 but change the <=20 to >20

    If you put the formula on a row other than row 10 adjust the ROW()-9 bit so that the row number less a constant is 1. e.g if on row 13 use =ROW()-12
    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
    04-13-2017
    Location
    Denver, CO
    MS-Off Ver
    2016MC
    Posts
    2

    Re: Top 5 values if they meet a criteria

    wow you guys are the greatest. Thanks so much!

  5. #5
    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: Top 5 values if they meet a criteria

    My pleasure and thanks for the rep.

    Note however that Tudy's use of the ROWS($1:1) is to be preferred to my ROW()-9 since there's then no need to consider which row contains the formula and adjust with a constant.

+ 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. How to make values not appear if they don't meet a criteria
    By dlevisay in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-28-2016, 01:16 AM
  2. [SOLVED] How to show the first 20 values that meet a criteria
    By Howlin in forum Excel General
    Replies: 6
    Last Post: 08-04-2015, 09:46 AM
  3. how to add all values above row that meet multiple criteria criteria
    By skikio in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-18-2015, 09:40 AM
  4. Sum values in cells to meet a certain criteria
    By kwillis33 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-29-2013, 09:53 AM
  5. How to Run a Correlation of Values That Meet Particular Criteria
    By newnoise in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-01-2012, 07:58 PM
  6. Replies: 5
    Last Post: 09-06-2011, 10:44 AM
  7. Totalling up values that meet two criteria
    By johnmitch38 in forum Excel General
    Replies: 5
    Last Post: 06-04-2009, 05:49 AM

Tags for this Thread

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