Percentage Calculation from last 5 entries

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am looking to calculate an efficiency percentage from the last 5 jobs worked

ie

150%
100%
-
-
150%

I am currently using the following formula

=IF(F16="","",SUM(J23:J27)/5)

But this assumes there is 5 entries, but as you can see from the example there is only 3 entries from the 5 available thus giving a false reading

Can I modify my formula to suit the available entries?

Many thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi,

97%
76%
118%
-
77%
this should return 92% because its only divided by 4?

but when we have
-
346%
-
-
208%
this should return 277% because its divided by2 only

Thanks
 
Upvote 0
I am getting 92 and 277 using

=SUM(A1:A5)/COUNTIF(A1:A5,"<>0")

Did you adjust the ranges? A1:A5 to J23:J27?

=SUM(J23:J27)/COUNTIF(J23:J27,"<>0")
 
Upvote 0
Hi,

Yes I changed the range

Another example

-
-
-
141%
134%

Should return 137% as its only divided by 2 this time?

But the formula returns 55%

Thanks
 
Upvote 0
Average ignores text and blank cells:

Row\Col
A​
B​
C​
D​
1​
97%​
2​
76%​
346%​
3​
118%​
4​
141%​
5​
77%​
208%​
134%​
6​
92%​
277%​
138%​
A6: =AVERAGE(A1:A5)
 
Upvote 0
That's it, many thanks shg

Many thanks AnalystJames for trying to help
 
Upvote 0

Forum statistics

Threads
1,215,773
Messages
6,126,816
Members
449,340
Latest member
hpm23

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