Finding Averages Across Multiple Columns That Meet Certain Criteria

kiwi1

New Member
Joined
Mar 18, 2019
Messages
2
Hi,

I want to be able to work out averages from a spreadsheet like below, across multiple columns. So for example, all of the averages from KWB1** to get a value f 2 returned, and then KWB2** to get what would be 7 in this example. Is there a way of just doing that in one formula?

KWB1T1KWB1T2KWB1T3KWB2T1KWB2T2KWB2T3
123678
123678
123678
123678

<tbody>
</tbody>

Thank you. :)
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Book1
ABCDEFGHI
1KWB1T1KWB1T2KWB1T3KWB2T1KWB2T2KWB2T3KWB12
2123678KWB27
3123678
4123678
5123678
Sheet1


In I1 control+shift+enter, not just enter, and copy down:

=AVERAGE(IF(LEFT($A$1:$F$1,LEN($H1))=$H1,$A$2:$F$5))
 
Upvote 0
Much more complicated than I expected it to be, haha. Thank you. :) Very much appreciated.
 
Upvote 0

Forum statistics

Threads
1,215,053
Messages
6,122,882
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top