Help with Averaging Based on Cell Conditions

cionnaith

Board Regular
Joined
Mar 9, 2010
Messages
52
Hello folks!

I am trying to calculate averages across an array of cells for one of six conditions in those cells.

I have five cells (i.e. G11:G15) where each cell can have one of six conditions (e.g. morning, afternoon, ... ) that are being read from another worksheet. In another column I have percentages associated with those five cells (i.e. I11:I15). In a third array of cells (i.e. I19:I24) I need to calculate the average for each of the conditions as they are present across those five cells. For example,

G I
11 morning 11 50%
12 morning 12 75%
13 afternoon 13 100%
14 afternoon 14 50%
15

I
19 average of all of the percents in I when G contains "morning"
20 average of all of the percents in I when G contains "afternoon"
21
22
23
24

etc..

The only other thing I need is to have the calculations in the I19:I24 cells return a blank cell if there are no entries in the others.

I hope this makes sense. Thanks so much in advance.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,224,616
Messages
6,179,911
Members
452,949
Latest member
beartooth91

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