+ Reply to Thread
Results 1 to 7 of 7

How do I add a countif, averageif and sumif function

  1. #1
    Registered User
    Join Date
    12-09-2012
    Location
    Mesa, AZ
    MS-Off Ver
    Excel 2010
    Posts
    34

    How do I add a countif, averageif and sumif function

    I am told to create a report which is below but it says to use the COUNTIF, AVERAGEIF and SUMIF functions. And then to add a total at the bottom.
    Ok I am confussed; can someone help me out wth this?

    Customer Type Nbr Customers Avg Gallons Used Total Billed
    Commercial 37 322,437 37,043.12
    Nonprofit 11 87,661 224.18
    Government 24 774,532 27,901.44

  2. #2
    Forum Contributor
    Join Date
    09-27-2012
    Location
    Florida
    MS-Off Ver
    Excel XP to 2013
    Posts
    342

    Re: How do I add a countif, averageif and sumif function

    OK is this your homework? Countif? What Averageif? What and Sumif if What?
    Tom S.
    ↙ If you find my reply helpful click on the * down there on the left. Yeah that's it, right there, down on the left
    If your question is resolved, mark it SOLVED using the thread tools.

  3. #3
    Registered User
    Join Date
    12-09-2012
    Location
    Mesa, AZ
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: How do I add a countif, averageif and sumif function

    Yes this is for my homework; but I am now more confussed then ever.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: How do I add a countif, averageif and sumif function

    Hi susiesc. It is the policy of this forum to not do your homework for you.

    We will offer help with things you have already tried, and maybe suggest alternatives.

    having said that...what have you done so far? what have you tried, what works and what didnt?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    12-09-2012
    Location
    Mesa, AZ
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: How do I add a countif, averageif and sumif function

    After I created the report I lookd in the other sheets to see how I am able to link them but this is
    not working. The only thing I can think of is adding the report to one of the sheets and then try it with a
    blank report to bring over the numbers. This is impossible to do if there is nothing to refer to; what else can I do?

  6. #6
    Registered User
    Join Date
    12-09-2012
    Location
    Mesa, AZ
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: How do I add a countif, averageif and sumif function

    This is what I put =COUNTIF(WaterData!B2:B73,A6) And it is not pulling over the count; what am I doing wrong?

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: How do I add a countif, averageif and sumif function

    here is the syntax for the functions you mentioned..

    suppose you have range of cells 1 - 10 in A1:A10 and in B you have, alternating, A and B

    COUNTIF = countif(range to count, criteria to base count on) =countif(A1:A10,2) will give 1, because there is only 1 "2" in that list

    AVERAGEIF =averageif(range-containing-criteria,criteria,range-to-base-average-on) =countif(B1:B10,"B",A1:A10) will give 6, because all the values with B (2+4+6+8+10)/5 = 6

    SUMIF =sumif(range-containing-criteria,criteria,range-to-sum) =sumif(B1:B10,"B",A1:A10) will give 30, because all the values with B (2+4+6+8+10) = 30

    Hope that helps a bit?

+ 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