formulas help needed

adbarnes81

New Member
Joined
Nov 16, 2009
Messages
22
I'm trying to calculate the average of B2:B12, minus any cells that do not equal 100 or more. For example:

34 (does not meet requirements for this formula)
114
156
158
153
160
132
152
153
159
136

What formula can I enter into the specific cell that would return the average of 147.3?
I know how to use =average(B2:B12), but I'd like it to not include B2, some cases may have a different cell to be excluded.

I would like this formula to encompass the enter cell chain so that I can enter new stats and it will recompute the average as long as they meet the one requirement.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi there,

You can try the following formula:

=SUMIF(B2:B12,">100")/COUNTIF(B2:B12,">100")

Hope it helps.
 
Upvote 0
may be this
Excel Workbook
ABC
134147.3
2114
3156
4158
5153
6160
7132
8152
9153
10159
11136
Sheet1
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0
Hi there,

You can try the following formula:

=SUMIF(B2:B12,">100")/COUNTIF(B2:B12,">100")

Hope it helps.


that works perfectly, thank you.

now that takes care of games per year if games played >100

how would i get an average At Bats/Game working with the similar criteria of games played per season

Player A has played 11 season with the number of games played list as B2:B12. His at bats per season are C2:C12.
I can simply use =sum(C2:C12)/sum(B2:B12) but that doesnt take out any games or at bats played in a <100 game season
 
Upvote 0
You can try this:

=SUMIF(B2:C12,">100",C2:C12)/(SUMIF(B2:B12,">100")/COUNTIF(B2:B12,">100"))

Hope I've understood your query. Sankar may have a much simpler array formula.
 
Upvote 0
may be this


Excel Workbook
BCDE
1GameBats
234140.077473
31144
41569
51589
61533
716018
813219
915212
1015310
1115915
1213615
Sheet1
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself
 
Upvote 0
Sankar's suggestion should work perfectly.

Just wanting to update the formula I've provided, it should be:
=SUMIF(B2:C12,">100",C2:C12)/SUMIF(B2:B12,">100")

Without the CountIf bit.
 
Upvote 0
may be this


Excel Workbook
BCDE
1GameBats
234140.077473
31144
41569
51589
61533
716018
813219
915212
1015310
1115915
1213615
Sheet1
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself


I tried that but it showed #value!

ideally i'd like it to exclude anything in B2:B12 that doesn't meet the >100. and to also exclude the corresponding C2:C12, then take the average C2:C12/B2:B12

i hope that helps explain it more
 
Upvote 0
Sankar's suggestion should work perfectly.

Just wanting to update the formula I've provided, it should be:
=SUMIF(B2:C12,">100",C2:C12)/SUMIF(B2:B12,">100")

Without the CountIf bit.


I made a tweak to your formula, it works great if you use:
=SUMIF(B2:B12,">100",C2:C12)/SUMIF(B2:B12,">100")


thanks a bunch guys
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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