+ Reply to Thread
Results 1 to 5 of 5

adding top 6 results... but still adding if there are less then 6 entries

  1. #1
    Registered User
    Join Date
    09-05-2016
    Location
    Vancouver, Canada
    MS-Off Ver
    365
    Posts
    63

    adding top 6 results... but still adding if there are less then 6 entries

    I need to add the top 6 results from a series of results but the problem I am having is when there are less then 6 entries it won't add until there are at least 6

    this is the formula I am using =SUM(LARGE(C5:N5,{1,2,3,4,5,6}))

    it works great if I have 6 or more entries but I need it to add the entries if there are less then 6 as well and then if over 6 it needs to add the top 6 value wise
    Attached Files Attached Files

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: adding top 6 results... but still adding if there are less then 6 entries

    Instead of blanks can you use a '0' zero?

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: adding top 6 results... but still adding if there are less then 6 entries

    Try this

    =SUMPRODUCT(LARGE(C5:N5,ROW(INDIRECT("1:"&MIN(6,COUNT(C5:N5))))))

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: adding top 6 results... but still adding if there are less then 6 entries

    Hi
    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: adding top 6 results... but still adding if there are less then 6 entries

    Another one

    =IFERROR(SUM(LARGE(C5:N5,{1,2,3,4,5,6})),SUM(C5:N5))

+ 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. [SOLVED] Adding New Entries From The Top
    By Jimbob 2705 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-20-2014, 06:10 PM
  2. [SOLVED] Problems with Adding new entries at the end of range
    By GIS2013 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2013, 09:18 AM
  3. [SOLVED] Help with adding up referenced data entries
    By pete36 in forum Excel General
    Replies: 4
    Last Post: 05-23-2012, 03:11 AM
  4. Replies: 3
    Last Post: 03-15-2011, 12:56 PM
  5. Adding entries to PivotTable via loop
    By bd528 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2010, 08:08 AM
  6. [SOLVED] adding 3 entries per month
    By jeremy via OfficeKB.com in forum Excel General
    Replies: 1
    Last Post: 08-11-2005, 06:05 PM
  7. Adding Consecutive Entries
    By FLKULCHAR in forum Excel General
    Replies: 1
    Last Post: 06-03-2005, 11:48 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