+ Reply to Thread
Results 1 to 6 of 6

Get top 10 values but ignore with blank cell if there's less than 10 values

  1. #1
    Forum Contributor
    Join Date
    08-18-2009
    Location
    Chih, Mexico
    MS-Off Ver
    Excel 2010
    Posts
    102

    Get top 10 values but ignore with blank cell if there's less than 10 values

    Hello!

    The goal is to get the top 10 users and how many times the machine was used and wich machine..
    but i'm stucked with the last 2 values in colums, gives me a user wich it does not have used that machine,
    then in third column formula is needed to know the machine mane was used...

    Here's attached file, hope a better explanation...

    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Get top 10 values but ignore with blank cell if there's less than 10 values

    Edited for clarity and typos.

    Try array-entering this formula in H15. All the machine numbers agree with the last two expected machine numbers except the last two ...... 13 and 3. My results are reversed and I believe correct.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    It also doesn't report machines that were not used.

    I changed your array formula in F15:F24 to
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    in order to trap errors and not return users who had used machines "0" times.

    In the formulas that had the LARGE k argument hardcoded like this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I changed to
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hard coding those numbers makes things more difficult than they need to be. Using ROWS($1:1) increments more easily. I changed that in other formulas where it applies. It also traps errors by not returning 0s.

    I also changed the formula in C15:C35 to
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I believe you will find it to operate more smoothly and easier to follow.

    Anyway with the exception of the reversed 13 and 3 these results agree with your expected in J15:L24, and where there were no users the cells show blanks.

    Let us know what you think.
    Attached Files Attached Files
    Last edited by FlameRetired; 05-22-2015 at 12:51 AM.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Get top 10 values but ignore with blank cell if there's less than 10 values

    Here's a better shorter non-array formula for H15:H24.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I don't know why I didn't think of it before.

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

    Re: Get top 10 values but ignore with blank cell if there's less than 10 values

    Hi

    This is non-array formula

    you on excel 2010? use Aggregate!

    K15
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down.

    J15
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down.
    or
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down

    L15
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down.
    or
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy down

    See the file.

    Regard
    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".

  5. #5
    Forum Contributor
    Join Date
    08-18-2009
    Location
    Chih, Mexico
    MS-Off Ver
    Excel 2010
    Posts
    102

    Re: Get top 10 values but ignore with blank cell if there's less than 10 values

    ThankS,

    FlameRetired and micope21 both solutions are working great....

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Get top 10 values but ignore with blank cell if there's less than 10 values

    Good to hear. Thanks for the feedback.

    BTW I almost forgot to mention it. micope21 is who I learned that SMALL(formula,COUNTIF()) approach from.
    Last edited by FlameRetired; 05-22-2015 at 09:19 PM.

+ 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. Replies: 8
    Last Post: 03-31-2015, 01:06 PM
  2. [SOLVED] Ignore Blank Values While Using INDEX
    By jokorey in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-08-2014, 01:58 PM
  3. [SOLVED] Ignore If Blank & check multiple cells for equal values
    By Urugmo88 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-25-2013, 04:46 AM
  4. Line chart should ignore blank data values
    By kenelder in forum Excel General
    Replies: 2
    Last Post: 06-10-2011, 03:50 AM
  5. Array Function - ignore blank values
    By gillemi in forum Excel General
    Replies: 6
    Last Post: 06-13-2006, 04:10 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