+ Reply to Thread
Results 1 to 4 of 4

AverageIf Formula Counting zeros grrr

Hybrid View

  1. #1
    Registered User
    Join Date
    07-06-2010
    Location
    Beckenham
    MS-Off Ver
    Excel 2007
    Posts
    84

    AverageIf Formula Counting zeros grrr

    I have the following formula which is counting zeros in column BX which I don't want it to

    =AVERAGEIFS(Properties!$BX$3:$BX$1002,Properties!$R$3:$R$1002,{"Y","A"},Properties!$C$3:$C$1002,"CPHA")
    Any help would be much appreciated
    Last edited by AllenMead; 10-31-2010 at 11:42 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: AverageIf Formula Counting zeros grrr

    Add a further test to exclude 0's

    =AVERAGEIFS(Properties!$BX$3:$BX$1002,Properties!$BX$3:$BX$1002,"<>0",Properties!$R$3:$R$1002,{"Y","A"},Properties!$C$3:$C$1002,"CPHA")
    edit: I should add that the in line array as used above will not work - it will only be averaging Y (A is ignored).
    If you want a weighted average you would need to use SUM(2 SUMIFS) / SUM(2 COUNTIFS) else use an Array *
    *assumes number of Y/A is not identical and that you want don't want the Average of the 2 AVERAGEIFS results [if you did: simply encase above within AVERAGE]
    Last edited by DonkeyOte; 10-26-2010 at 08:10 AM.

  3. #3
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: AverageIf Formula Counting zeros grrr

    Hello Allen
    I see you still don't attach a dummy sheet. As I've suggested before to you, it makes it so much easier for someone to help you if you attached one.
    They then don't have to try and imagine they way you have your spread layed out, they don't have to recreate what you already have infront of you.
    Please when you are posting another question, attach a dummy sheet with an example of what you expect as an result.
    Regards
    Peter

  4. #4
    Registered User
    Join Date
    07-06-2010
    Location
    Beckenham
    MS-Off Ver
    Excel 2007
    Posts
    84

    Re: AverageIf Formula Counting zeros grrr

    Thank you DonkeyOte, that works just fine.

    Sorry Peter but that is not always possible with time constraints.

+ 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