Hi all,
I've been struggling with the COUNTIFS and AVERAGEIFS functions when dealing with the ABS function.
What I want to do is:
=COUNTIFS(Criteria_range1,criteria1,Criteria_range2,criteria2, etc...)
Which is working fine until I want to use the ABS function within this function, for example count if column A contains 1 and column D contains any number greater than 1. (same for average)
=COUNTIFS(A:A,1,D:D,">1") and =AVERAGEIFS(D:D,A:A,1,D:D,">1")
How can I amend this so I can change that second criteria to look at the absolute values stored in column D...
=COUNTIFS(A:A,1,ABS(D:D),">1") and =AVERAGEIFS(D:D,A:A,1,ABS(D:D),">1")
Doesn't work and I've been struggling with other ways of writing this so excel knows what I want it to do.
Can I use INDEX(ABS(D:D),0,1) somehow? I have used this to find a average, with other criteria..
=AVERAGE(IF(Criteria_Range1=Criteria1,INDEX(ABS(D:D),0,1)))
to give me the average of the Absolute values in D that meet the criteria, could I somehow use this to solve my issue.
Appreciate the assistance.
Gourav
I've been struggling with the COUNTIFS and AVERAGEIFS functions when dealing with the ABS function.
What I want to do is:
=COUNTIFS(Criteria_range1,criteria1,Criteria_range2,criteria2, etc...)
Which is working fine until I want to use the ABS function within this function, for example count if column A contains 1 and column D contains any number greater than 1. (same for average)
=COUNTIFS(A:A,1,D:D,">1") and =AVERAGEIFS(D:D,A:A,1,D:D,">1")
How can I amend this so I can change that second criteria to look at the absolute values stored in column D...
=COUNTIFS(A:A,1,ABS(D:D),">1") and =AVERAGEIFS(D:D,A:A,1,ABS(D:D),">1")
Doesn't work and I've been struggling with other ways of writing this so excel knows what I want it to do.
Can I use INDEX(ABS(D:D),0,1) somehow? I have used this to find a average, with other criteria..
=AVERAGE(IF(Criteria_Range1=Criteria1,INDEX(ABS(D:D),0,1)))
to give me the average of the Absolute values in D that meet the criteria, could I somehow use this to solve my issue.
Appreciate the assistance.
Gourav