+ Reply to Thread
Results 1 to 9 of 9

SUMIF for percentage averages?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-12-2007
    Posts
    144

    SUMIF for percentage averages?

    Hi,

    I am using SUMIF for some tables that summarize my main data.
    This works great for dollar values, but for percentages I need to find the average not the total.

    I figure I can get the total, and then count how many there were, and that will give me the average.
    Can I use SUMIF to just count how many results are bigger than 0?

    My totals formula is:
    =SUMIF(FullData!$E:$E,$E95,FullData!$CF:$CF)


    I was thinking something like:
    =SUMIF(FullData!$E:$E,$E95, if(FullData!$CF:$CF>0,1,0) )
    Last edited by treva26; 05-04-2010 at 10:51 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: SUMIF for percentage averages?

    It would help to see a sample workbook, but you can use this to count greater than 0.

    =COUNTIF($A$1:$A$10,">0")

    or with Sumif

    =SUMIF($A$1:$A$10,">0")

  3. #3
    Forum Contributor
    Join Date
    06-12-2007
    Posts
    144

    Re: SUMIF for percentage averages?

    Quote Originally Posted by jeffreybrown View Post
    It would help to see a sample workbook
    Sorry, OK here is an example.

    Basically I need to average values from the column, if TWO criteria are met.
    Attached Files Attached Files

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: SUMIF for percentage averages?

    How about...

    =AVERAGE(IF(B5:B22="AREA1",IF(C5:C22>0,C5:C22)))

    Enter with Ctrl + Shift + Enter

    Sorry I messed that formula up, please use the replaced formula
    Last edited by jeffreybrown; 05-04-2010 at 10:23 PM.

  5. #5
    Forum Contributor
    Join Date
    06-12-2007
    Posts
    144

    Re: SUMIF for percentage averages?

    Quote Originally Posted by jeffreybrown View Post
    How about...

    =AVERAGE(IF(B5:B22="AREA1",IF(C5:C22>0,C5:C22)))

    Enter with Ctrl + Shift + Enter

    Sorry I messed that formula up, please use the replaced formula

    Thats it! Thank you

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: SUMIF for percentage averages?

    You're Welcome

    If you are satisfied with the answer provided, please mark the thread as solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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