Formula for avrgs

noob

Board Regular
Joined
Mar 5, 2008
Messages
59
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
Joined
Jul 21, 2002
Messages
73,092
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
Joined
Mar 5, 2008
Messages
59
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:

noob

Board Regular
Joined
Mar 5, 2008
Messages
59

ADVERTISEMENT

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
Joined
Jul 21, 2002
Messages
73,092
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
Joined
Mar 5, 2008
Messages
59

ADVERTISEMENT

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
Joined
Jul 21, 2002
Messages
73,092
Right click the data field and choose Field Settings. In the Summarise by listbox select Average (rather than Sum) and click OK.
 

Watch MrExcel Video

Forum statistics

Threads
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.
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
Top