Last nth number avg

ParkourAngel

New Member
Joined
Apr 19, 2024
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
I have a large set of values (productivity % of each person) and I want to be able to pull the average of the last 13 values. How do I ignore the blanks?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Try this:

Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
28%1%2%3%4%5%6%7%8%9%10%11%12%13%14%
Sheet1
Cell Formulas
RangeFormula
A2A2=AVERAGE(IF((B2:Z2<>"")*COLUMN(B2:Z2)>= AGGREGATE(14,6,COLUMN(B2:Z2)/(B2:Z2<>""),13),B2:Z2,""))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Solution
Try this:

Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
28%1%2%3%4%5%6%7%8%9%10%11%12%13%14%
Sheet1
Cell Formulas
RangeFormula
A2A2=AVERAGE(IF((B2:Z2<>"")*COLUMN(B2:Z2)>= AGGREGATE(14,6,COLUMN(B2:Z2)/(B2:Z2<>""),13),B2:Z2,""))
Press CTRL+SHIFT+ENTER to enter array formulas.
This worked out great thanks!!!
 
Upvote 0
If you didn't want the Ctrl+Shift+Enter array entry then I think this standard-entry modification should also work for you

24 07 23.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
28%1%2%3%4%5%6%7%8%9%10%11%12%13%14%
Average
Cell Formulas
RangeFormula
A2A2=AVERAGE(INDEX(2:2,AGGREGATE(14,6,COLUMN(B2:Z2)/(B2:Z2<>""),13)):Z2)
 
Upvote 0

Forum statistics

Threads
1,224,802
Messages
6,181,054
Members
453,014
Latest member
Chris258

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