Replacing Values Above 100% in an Average

redhots4

Board Regular
Joined
Aug 30, 2004
Messages
136
Office Version
  1. 365
Platform
  1. MacOS
Hi everyone. I have an array that includes percentages from 0-100+, including blanks. For values over 100%, I want to use 100% for that field in my average. How do I do that?

Book2
AB
1Percentage of GoalNotes
2100%
3100%
4100%
550%
650%
7150%<-- Use 100%
8200%<-- Use 100%
9
10
1125%
120%
130%
1477.50% <-- Average
1562.50%<--Desired Result
Sheet1
Cell Formulas
RangeFormula
A14A14=AVERAGE(A2:A13)
A15A15=AVERAGE(1,1,1,0.5,0.5,1,1,0.25,0,0)
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Maybe =If(AVERAGE(A2:A13)<=100, AVERAGE(A2:A13),100)
as long as there is at least one value in the range, otherwise you'll raise division by zero error.
 
Upvote 0
Thanks for your reply @Micron. Your formula returns the same value in my use case, because the overall average is still less than 100%. What I need to do is somehow use 100% in place of anything over 100% when running the average).
 
Upvote 0
I guess I still don't get it then. If the average is less than 100% don't you want whatever the average is? If it's over 100% don't you want 100%?
RequiredActual of A2:A6
100169
50
25
100
500
 
Upvote 0
No, that's not it. If the VALUE of a given field is over 100%, I want to use 100% for that field in my calculation. See the original spreadsheet I posted -- My "desired result" formula shows a manually-created set of values for use in the average.
 
Upvote 0
How about
Excel Formula:
=AVERAGE(IF(A2:A13>1,1,IF(A2:A13="","",A2:A13)))
 
Upvote 0
Sorry, I thought those values in A were calculations using values from somewhere in the workbook. I don't see why you can't use If though, as in column B IF(A2<=100, A2,100)
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

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