Average Not Counting Zero ... but maybe a few??

Erehwon

New Member
Joined
May 22, 2014
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Greetings - Haven't been to board in a while but have something that may be tricky so I turned to the pros!!!

Given:

Week StartsTotal Work Utilization
Jul-20%
Jul-9100%
Jul-16100%
Jul-230%
Aug-60%
Aug-160%
Aug-20
0%
Aug-270%
Sep-30%
Sep-100%
Sep-170%
Sep-240%
Total

<tbody>
</tbody>


<colgroup><col></colgroup><tbody>
</tbody>

I need to calculate the Average not including the 0%'s after the current week. However - this person was on PTO the 1st week so I DO need to count that Zero. I've used this formula int he past =AVERAGEIF(R5:R17,"<>0") to ignore zeros but it breaks when I have a legit 0 that needs to be factored in.

Any suggestions??
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Do you have a cell that indicates the PTO status for each week?
 
Upvote 0
@Erehwon, assuming your header "Week Starts" is in Q4 and your header "Total Work Utilization" is in R4, in R17:

=SUM($R$5:$R$16)/COUNTIF($Q$5:$Q$16,"<"&NOW()-7)

Also, just a note: you have Aug-16 in the list of "Week Starts," but that date is a Wednesday not a Sunday (which is Aug-13)
 
Upvote 0

Forum statistics

Threads
1,214,792
Messages
6,121,612
Members
449,038
Latest member
apwr

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