Forum Discussion

dustinhartley1979's avatar
dustinhartley1979
Copper Contributor
Jan 16, 2018
Solved

Assigning data a class and then performing calculations on that specific class

Hello, I have assigned data in rows to either "class 1" or "class 2".  Without filtering the data, I am looking for a formula that will average only the data assigned to "class 1" and then I can ad...
  • Damien_Rosario's avatar
    Jan 16, 2018

    Hi Dustin

     

    This formula might work for you:

     

    =AVERAGEIF(A1:A8,"1",B1:B8) <-- will only avg $ for Class 1

    =AVERAGEIF(A2:A8,"=1",C2:C8) <-- will only avg Weight for Class 1

     

    =AVERAGEIF(A1:A8,"2",B1:B8) <-- will only avg $ for Class 2

    =AVERAGEIF(A2:A8,"2",C2:C8) <-- will only avg Weight for Class 2

     

    I have attached the file you uploaded with the formula.

     

    Hopefully I have understood you right. Let us know how you go?

     

    Cheers

    Damien

Resources