How do I add the top 8 values from a row of 10 entires ?
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: How do I add the top 8 values from a row of 10 entires ?

  1. #1
    Guest

    Default

     
    Hi,

    I am stuck I am trying to add the top 8 alues from this row of 10 entires:-
    Answer
    19 23 29 17 22 23 20 25 25 24 191

    but I am not sure how to do this ?

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    81,868
    Post Thanks / Like
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)

    Default

    On 2002-03-01 01:47, Anonymous wrote:
    Hi,

    I am stuck I am trying to add the top 8 alues from this row of 10 entires:-
    Answer
    19 23 29 17 22 23 20 25 25 24 191

    but I am not sure how to do this ?
    Use one of:

    =IF((COUNT(A1:A10)<=B1),SUM(A1:A10),SUM(LARGE(A1:A10,{1,2,3,4,5,6,7,8})))

    =IF((COUNT(A1:A10)<=B1),SUM(A1:A10),SUMPRODUCT(LARGE(A1:A10,ROW(INDIRECT("1:"&B1)))))

    where B1 holds 8, the desired number of top/largest values.

  3. #3
    New Member
    Join Date
    Feb 2002
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    I have now registered as a user.

    Tried both equations and they work !

    Many thanks for you quick response.

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com