• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Conditional Average

How to achieve conditional average. I need average wherever there is "D" , When there is no "D" then it has to calculate the average for "R1".

Thanks
santhosha'
 

Attachments

  • dummy calc.xlsx
    9.4 KB · Views: 11
Hi ,

Going by your workbook , you should use the following :

=IFERROR(AVERAGEIFS($C$2:$C$24,$A$2:$A$24,A3,$B$2:$B$24,"D"),AVERAGEIFS($C$2:$C$24,$A$2:$A$24,A3,$B$2:$B$24,"R1"))

so that you do not need to select the range individually for each job code.

Narayan
 
Back
Top