# Formula for avrgs

#### noob

##### Board Regular
Column I has sizes of containers ranging from 0.1-88.0, column O has a dollar value of \$/Yard. I need a formula that will calculate avrg \$/Yrd for all container sizes and mark ones that are below avrg. in a new column.

Thank You

### Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

#### Andrew Poulsom

##### MrExcel MVP
You can use a formula like:

=O1<AVERAGE(IF(I\$1:I\$100=I1,O\$1:O\$100))

which must be confirmed with Ctrl+Shift+Enter, not just Enter. If correctly entered Excel will surround the array formula with curly braces {}. The formula can be copied down.

#### noob

##### Board Regular
All I got from that was same avrg that is entered in O2, I need to come up with avrgs. for all size containers and than mark ones below. Not sure if the formula has to be on a separate work sheet to get the avrgs. I was thinking it would have something to do with ( =IF( and THAN formulas plus avrg. formula. but I'm not so sure

Last edited:

#### Andrew Poulsom

##### MrExcel MVP
Sorry my formula got cut off:

=O1 < AVERAGE(IF(I\$1:I\$100=I1,O\$1:O\$100))

#### noob

##### Board Regular

OK thank you, so cells marked true are above avrg. false below.. and my second questions is how do I get the avrgs. for each container size? Thank you for the fast reply.

#### Andrew Poulsom

##### MrExcel MVP
The formula returns TRUE for below average, otherwise FALSE.

The second part of the formula returns the average for the container size in column I. You could use a pivot table to create a table of all the averages.

#### noob

##### Board Regular

I've tried the pivot table but it gives me totals vs. avrg. for container size... What would be the formula for the averages

Last edited:

#### Andrew Poulsom

##### MrExcel MVP
Right click the data field and choose Field Settings. In the Summarise by listbox select Average (rather than Sum) and click OK.

#### noob

##### Board Regular
Ok thank you for all you're help

Replies
4
Views
75
Replies
5
Views
84
Replies
6
Views
169
Replies
2
Views
240
Replies
22
Views
1K

1,129,751
Messages
5,638,145
Members
417,010
Latest member
jnuss03

### 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.

### Which adblocker are you using?

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

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