+ Reply to Thread
Results 1 to 4 of 4

formulea for adding top 4 numbers out of row of six

  1. #1
    Registered User
    Join Date
    01-17-2015
    Location
    redditch uk
    MS-Off Ver
    mac 2011
    Posts
    4

    formulea for adding top 4 numbers out of row of six

    I have the following formula for adding only the highest four numbers out of a row of six,=SUM(MAX(LARGE(B8:G8,1),0),MAX(LARGE(B8:G8,2),0),MAX(LARGE(B8:G8,3),0), MAX(LARGE(B8:G8,4),0)) but when only 3 numbers are filled in does not work unless a zero is inserted in at least one other cell in group, I thought that the ),0)) would show empty cell as zero, any suggestions would be most welcom

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: formulea for adding top 4 numbers out of row of six

    =IFERROR(SUMPRODUCT(LARGE(B8:G8,ROW(INDIRECT("1:"&MIN(COUNT(B8:G8),4))))),0)
    Try this
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    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,053

    Re: formulea for adding top 4 numbers out of row of six

    Hi there. try this out, instead.

    =SUMPRODUCT(LARGE(B8:G8,IF(COUNT(B8:G8)=1,{1},IF(COUNT(B8:G8)=2,{1,2},IF(COUNT(B8:G8)=3,{1,2,3},{1,2,3,4})))))
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: formulea for adding top 4 numbers out of row of six

    Try this version

    =IFERROR(SUM(LARGE(B8:G8,{1,2,3,4})),SUM(B8:G8))

    It sums the top 4.....unless that produces an error, in which case it sums all of the numbers
    Audere est facere

+ 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. filter list of text for unique entries using formulea
    By Domenic in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  2. filter list of text for unique entries using formulea
    By Domenic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  3. filter list of text for unique entries using formulea
    By The Nephalim in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  4. filter list of text for unique entries using formulea
    By The Nephalim in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  5. [SOLVED] filter list of text for unique entries using formulea
    By The Nephalim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2005, 08:05 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