Hi all,
I am attempting to create a table of averages based on two criteria. I want to get an average of costs that are not equal to 0 and fit into a certain category. I have tried both averageifs and sumifs/countifs functions. Here are the two formulas I have most recently tried. It says there is an error in my formula in both of them.
I am averaging everything in column "O" that doesn't equal 0 and fits within one of the categories in column "C" based on the text string given in column "K". This is a column of averages I placed at the bottom of my data. Any help is appreciated, thank you!
I am attempting to create a table of averages based on two criteria. I want to get an average of costs that are not equal to 0 and fit into a certain category. I have tried both averageifs and sumifs/countifs functions. Here are the two formulas I have most recently tried. It says there is an error in my formula in both of them.
Code:
=AVERAGEIFS(O$3:O2196,LEFT($C$3:$C2196,10),$K2206,O$3:O2196,"<>0")
=SUMIFS(O$3:O2196,LEFT($C$3:$C2196,10),$K2206,O$3:O2196,"<>0"))/COUNTIFS(LEFT($C$3:$C2196,10),$K2206,O$3:O2196,"<>0"))
I am averaging everything in column "O" that doesn't equal 0 and fits within one of the categories in column "C" based on the text string given in column "K". This is a column of averages I placed at the bottom of my data. Any help is appreciated, thank you!