Average issue

CherryMan

New Member
Joined
Jul 6, 2008
Messages
14
Please look in the "Average" column. Is it possible to be able to include and NOT include the 0 as part of the average? I have included all of my formulas to help if necessary. Thank you very much
72<o:p></o:p>
80/88<o:p></o:p>
100/113<o:p></o:p>
125/138<o:p></o:p>
UNDER 13<o:p></o:p>
=COUNTIF(O5:O124,"<13")<o:p></o:p>
=COUNTIF(Q5:Q124,"<13")<o:p></o:p>
=COUNTIF(S5:S124,"<13")<o:p></o:p>
=COUNTIF(U5:U124,"<13")<o:p></o:p>
UNDER 14<o:p></o:p>
=COUNTIF(O5:O124,"<14")<o:p></o:p>
=COUNTIF(Q5:Q124,"<14")<o:p></o:p>
=COUNTIF(S5:S124,"<14")<o:p></o:p>
=COUNTIF(U5:U124,"<14")<o:p></o:p>
UNDER 15<o:p></o:p>
=COUNTIF(O5:O124,"<15")<o:p></o:p>
=COUNTIF(Q5:Q124,"<15")<o:p></o:p>
=COUNTIF(S5:S124,"<15")<o:p></o:p>
=COUNTIF(U5:U124,"<15")<o:p></o:p>
TOTAL ENTRIES<o:p></o:p>
=COUNTIF(O5:O124,">0")<o:p></o:p>
=COUNTIF(Q5:Q124,">0")<o:p></o:p>
=COUNTIF(S5:S124,">0")<o:p></o:p>
=COUNTIF(U5:U124,">0")<o:p></o:p>
% UNDER 13<o:p></o:p>
=IFERROR(B35/B38,0)<o:p></o:p>
=IFERROR(C35/C38,0)<o:p></o:p>
=IFERROR(D35/D38,0)<o:p></o:p>
=IFERROR(E35/E38,0)<o:p></o:p>
% UNDER 14<o:p></o:p>
=IFERROR(B36/B38,0)<o:p></o:p>
=IFERROR(C36/C38,0)<o:p></o:p>
=IFERROR(D36/D38,0)<o:p></o:p>
=IFERROR(E36/E38,0)<o:p></o:p>
% UNDER 15<o:p></o:p>
=IFERROR(B37/B38,0)<o:p></o:p>
=IFERROR(C37/C38,0)<o:p></o:p>
=IFERROR(D37/D38,0)<o:p></o:p>
=IFERROR(E37/E38,0)<o:p></o:p>

<tbody>
</tbody>
Pressures<o:p></o:p>
72<o:p></o:p>
80/88<o:p></o:p>
100/113<o:p></o:p>
125/138 <o:p></o:p>
Average <o:p></o:p>
Max<o:p></o:p>
=MAX(O5:O124)<o:p></o:p>
=MAX(Q5:Q124)<o:p></o:p>
=MAX(S5:S124)<o:p></o:p>
=MAX(U5:U124)<o:p></o:p>
=IFERROR(AVERAGEIF(B4:E4,">0",B4:E4),0)<o:p></o:p>
Min<o:p></o:p>
=MIN(O5:O124)<o:p></o:p>
=MIN(Q5:Q124)<o:p></o:p>
=MIN(S5:S124)<o:p></o:p>
=MIN(U5:U124)<o:p></o:p>
=IFERROR(AVERAGEIF(B5:E5,">0",B5:E5),0)<o:p></o:p>
Average<o:p></o:p>
=IFERROR(AVERAGEIF(O5:O124,">0",O5:O124),0)<o:p></o:p>
=IFERROR(AVERAGEIF(Q5:Q124,">0",Q5:Q124),0)<o:p></o:p>
=IFERROR(AVERAGEIF(S5:S124,">0",S5:S124),0)<o:p></o:p>
=IFERROR(AVERAGEIF(U5:U124,">0",U5:U124),0)<o:p></o:p>
=IFERROR(AVERAGEIF(B6:E6,">0",B6:E6),0)<o:p></o:p>
Below psi<o:p></o:p>
Average<o:p></o:p>
Under 13<o:p></o:p>
=B39<o:p></o:p>
=C39<o:p></o:p>
=D39<o:p></o:p>
=E39<o:p></o:p>
=IFERROR(AVERAGEIF(B8:E8,">0",B8:E8),0)<o:p></o:p>
Under 14<o:p></o:p>
=B40<o:p></o:p>
=C40<o:p></o:p>
=D40<o:p></o:p>
=E40<o:p></o:p>
=IFERROR(AVERAGEIF(B9:E9,">0",B9:E9),0)<o:p></o:p>
Under 15<o:p></o:p>
=B41<o:p></o:p>
=C41<o:p></o:p>
=D41<o:p></o:p>
=E41<o:p></o:p>
=IFERROR(AVERAGEIF(B10:E10,">0",B10:E10),0)<o:p></o:p>

<tbody>
</tbody>
 
Below PSI Size 1Size 2Size 3Size 4Average
Under 1395%0%78%5%
Under 14100%23%93%13%
Under 15100%45%95%25%

<tbody>
</tbody>
Lets try this: If size 1 cells B2:B4 are greater than 0 the below 13,14,15 must include the number in its calculation. If ALL the numbers B2:B4 are 0, then the below 13,14,15 CANNOT include the 0 in its calculation. So the average for the under 13 should include the number 0 in its calculation, because the numbers in C3 and C4 are greater than 0. If, say, all of the numbers C2:C4 are 0, then the average calculation CANNOT include the 0.


Still no results in the average column you want to see.

Am I confusing you more yet?

Indeed, I'm still far from having an idea of the task.
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,215,449
Messages
6,124,911
Members
449,195
Latest member
Stevenciu

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