+ Reply to Thread
Results 1 to 6 of 6

Find the 5 lowest values

  1. #1
    Registered User
    Join Date
    07-17-2014
    Location
    Liverpool, England
    MS-Off Ver
    MS Office 2007
    Posts
    2

    Question Find the 5 lowest values

    Hi

    I have created a spreadsheet showing a list of food items and the total cost lost in pounds. I am trying to figure out what formula I use to find the five lowest values and show the five names and total costs in a table of its own. I have attached a quick print screen of the spreadsheet. Any help would be grateful.

    example.jpg

  2. #2
    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: Find the 5 lowest values

    Try this formula

    =IF(ROWS($H$4:H4)>5,"",SMALL($H$4:$H$15,ROWS($H$4:H4)))

    and pull formula down
    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

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find the 5 lowest values

    Try this...

    Data Range
    A
    B
    C
    D
    E
    F
    G
    H
    1
    Item
    Loss
    Bottom
    5
    Item
    Loss
    2
    Item1
    47
    Count
    5
    Item10
    9
    3
    Item2
    59
    Item8
    10
    4
    Item3
    13
    Item3
    13
    5
    Item4
    35
    Item6
    32
    6
    Item5
    66
    Item4
    35
    7
    Item6
    32
    8
    Item7
    39
    9
    Item8
    10
    10
    Item9
    70
    11
    Item10
    9
    12
    ------
    ------
    ------
    ------
    ------
    ------
    ------
    ------


    A top/bottom N list might have more than N records depending on ties.

    Enter this formula in E2. This will return the count of records that are within the bottom 5.

    =COUNTIF(B2:B11,"<="&SMALL(B2:B11,E1))

    Enter this array formula** in G2:

    =IF(H2="","",INDEX(A:A,SMALL(IF(B$2:B$11=H2,ROW(B$2:B$11)),COUNTIF(H$2:H2,H2))))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Enter this formula in H2:

    =IF(ROWS(H$2:H2)>E$2,"",SMALL(B$2:B$11,ROWS(H$2:H2)))

    Select G2:H2 and copy down until you get blanks.
    Last edited by Tony Valko; 07-17-2014 at 09:28 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    07-17-2014
    Location
    Liverpool, England
    MS-Off Ver
    MS Office 2007
    Posts
    2

    Re: Find the 5 lowest values

    I keep getting #NUM! when the formula is entered

  5. #5
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Find the 5 lowest values

    Hi

    See the file!

    Info are in the file!

    Regard
    micope21
    Attached Files Attached Files
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find the 5 lowest values

    Quote Originally Posted by jacko53 View Post
    I keep getting #NUM! when the formula is entered
    Did you try the technique in post #3?

+ 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. Formula to find 2 lowest values across a row and then to combine them
    By Yannou in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2011, 05:36 AM
  2. Find the average of the lowest four values of the last six
    By pjmcc64 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-03-2010, 06:26 PM
  3. [SOLVED] Find x number of lowest values from a 200 x 200 matrix
    By Grotifant in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-23-2005, 10:06 PM
  4. [SOLVED] How do I find the two lowest values in a range?
    By dlroelike in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2005, 09:06 PM
  5. Find the 40 lowest values within a selection
    By Grotifant in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2005, 12:48 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