Dear All,
I'm new to the forum and this is my first thread!
I have the below spreadsheet that I want to be dynamic in choosing data to make the correct average.
In the coloumns from C to K there are the data.
In the coloumns from M to Q there are the formulas I'm trying to sort out.
I want to average the values in the table based on the letter I put in green
For example the formula in M10 is =(AVERAGEIFS($C10:$K10;$C$4:$K$4;$M$4)) and the result is 85, the avarage of all the "A" letters in the table for the corresponding row.
Of course the formula looks for the exact match of the cell choosen, but it doesn't work if I put a combination of the cells I want to average.
In fact the columns N and O don't work and I wasn't able to use wildcards to make it function properly.
I want to put "AB" in the cell N4 and have, for example in cell N10, 183 as a result of the average of all the A and B letters in the table.
Thank you for your help!
[TABLE="width: 1238"]
<tbody>[TR]
[TD][/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[TD]I
[/TD]
[TD]J
[/TD]
[TD]K
[/TD]
[TD]L
[/TD]
[TD]M
[/TD]
[TD]N
[/TD]
[TD]O
[/TD]
[TD]P
[/TD]
[TD]Q
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Mean Recovery (%)
[/TD]
[TD]Mean Recovery (%)
[/TD]
[TD]Mean Recovery (%)
[/TD]
[TD]Mean Recovery (%)
[/TD]
[TD]Mean Recovery (%)
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]Level
[/TD]
[TD]A
[/TD]
[TD]A
[/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]B
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]C
[/TD]
[TD]C
[/TD]
[TD][/TD]
[TD]A
[/TD]
[TD]AB
[/TD]
[TD]ABC
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]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]82
[/TD]
[TD]284
[/TD]
[TD]288
[/TD]
[TD]273
[/TD]
[TD]423
[/TD]
[TD]435
[/TD]
[TD]409
[/TD]
[TD][/TD]
[TD]85
[/TD]
[TD]#DIV/0!
[/TD]
[TD]#DIV/0!
[/TD]
[TD]282
[/TD]
[TD]422
[/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD]Ba135
[/TD]
[TD]224
[/TD]
[TD]218
[/TD]
[TD]236
[/TD]
[TD]773
[/TD]
[TD]734
[/TD]
[TD]750
[/TD]
[TD]1088
[/TD]
[TD]1112
[/TD]
[TD]1116
[/TD]
[TD][/TD]
[TD]226
[/TD]
[TD]#DIV/0!
[/TD]
[TD]#DIV/0!
[/TD]
[TD]752
[/TD]
[TD]1105
[/TD]
[/TR]
</tbody>[/TABLE]
Stefano
I'm new to the forum and this is my first thread!
I have the below spreadsheet that I want to be dynamic in choosing data to make the correct average.
In the coloumns from C to K there are the data.
In the coloumns from M to Q there are the formulas I'm trying to sort out.
I want to average the values in the table based on the letter I put in green
For example the formula in M10 is =(AVERAGEIFS($C10:$K10;$C$4:$K$4;$M$4)) and the result is 85, the avarage of all the "A" letters in the table for the corresponding row.
Of course the formula looks for the exact match of the cell choosen, but it doesn't work if I put a combination of the cells I want to average.
In fact the columns N and O don't work and I wasn't able to use wildcards to make it function properly.
I want to put "AB" in the cell N4 and have, for example in cell N10, 183 as a result of the average of all the A and B letters in the table.
Thank you for your help!
[TABLE="width: 1238"]
<tbody>[TR]
[TD][/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[TD]I
[/TD]
[TD]J
[/TD]
[TD]K
[/TD]
[TD]L
[/TD]
[TD]M
[/TD]
[TD]N
[/TD]
[TD]O
[/TD]
[TD]P
[/TD]
[TD]Q
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
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