+ Reply to Thread
Results 1 to 9 of 9

Help with count function

  1. #1
    Registered User
    Join Date
    02-20-2007
    Posts
    10

    Help with count function

    I have a row of test scores in cells b4 through e4 (beginning in b4 they are 60, 50, 40 and 79) and a test average in cell f4...The formula has to contain sum, min and count functions. The test average is the sum of b4:e4, minus the lowest score which is in cell d4 and then divided by the count of the other 3 columns...

    I have the formula as follows: =sum(b4:e4)-min(b4:e4) which equals a total of 189, but I cannot figure out how to use the count function to divide this total by 3 to get the test average of 63.0...

    Can anyone help me with this formula???

    Thanks...

    Connie

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Hi
    try

    =(SUM(B4:E4)-MIN(B4:E4))/(COUNT(B4:E4)-1)

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    02-20-2007
    Posts
    10

    Bryan Hessey

    The total came to 46.25 and should be 63.0

  4. #4
    Registered User
    Join Date
    02-20-2007
    Posts
    10

    count function

    Quote Originally Posted by Bryan Hessey
    Hi
    try

    =(SUM(B4:E4)-MIN(B4:E4))/(COUNT(B4:E4)-1)

    hth
    ---
    The total came to 46.25 but it should be 63.0

  5. #5
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    If you leave off the () around the divisor you will get 46.25.

    Either type carefully or copy and paste Bryan's original formula (or a copy of it here) into your spreadsheet:

    =(SUM(B4:E4)-MIN(B4:E4))/(COUNT(B4:E4)-1)

    If you don't put the () around the "COUNT.." function, it divides your SUM-MIN by the count, and then simply subtracts 1 at the end. With the COUNT and -1 in parenthesis, the SUM-MIN is divided by the COUNT-1.

    =(SUM(B4:E4)-MIN(B4:E4))/(COUNT(B4:E4)-1)
    =(SUM(60,50,40,79)-MIN(60,50,40,79))/(4-1)
    =(229-40)/(3)
    =(189)/(3)
    =63

  6. #6
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by cheggie1
    The total came to 46.25 but it should be 63.0
    Hi,

    include the red brackets

    =(SUM(B4:E4)-MIN(B4:E4))/(COUNT(B4:E4)-1)

    ---

  7. #7
    Registered User
    Join Date
    02-20-2007
    Posts
    10

    count function

    Thanks a million...

  8. #8
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by cheggie1
    Thanks a million...
    I guess that means it worked, thanks for your response and thanks also to Paul ( pjoaquin ) for his better explanation.

    ---

  9. #9
    Registered User
    Join Date
    02-20-2007
    Posts
    10

    Count Function

    You were both most helpful...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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