I have the following formula which is counting zeros in column BX which I don't want it to
Any help would be much appreciated![]()
=AVERAGEIFS(Properties!$BX$3:$BX$1002,Properties!$R$3:$R$1002,{"Y","A"},Properties!$C$3:$C$1002,"CPHA")
I have the following formula which is counting zeros in column BX which I don't want it to
Any help would be much appreciated![]()
=AVERAGEIFS(Properties!$BX$3:$BX$1002,Properties!$R$3:$R$1002,{"Y","A"},Properties!$C$3:$C$1002,"CPHA")
Last edited by AllenMead; 10-31-2010 at 11:42 AM.
Add a further test to exclude 0's
edit: I should add that the in line array as used above will not work - it will only be averaging Y (A is ignored).![]()
=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")
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.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
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
Thank you DonkeyOte, that works just fine.
Sorry Peter but that is not always possible with time constraints.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks