Last 20 dates

tbilderbac

New Member
Joined
Apr 11, 2022
Messages
28
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I am have a list of dates and I am trying to extract the last 20 dates and then I want to look at the Diff column numbers [that is associated to the date] and get the average of the 10 lowest differentials out of the last 20 dates.

Date Diff
4/3/2022 24
4/5/2022 19
4/6/2022 23
4/7/2022 24
4/8/2022 26
4/9/2022 25
4/10/2022 28
4/11/2022 21
4/28/2022 19
4/29/2022 24
5/4/2022 15
5/5/2022 16
5/9/2022 30
5/10/2022 26
5/11/2022 25
5/13/2022 24
6/5/2022 19
6/6/2022 21
6/7/2022 20
6/12/2022 26
6/13/2022 21
6/14/2022 24
 
yes, I have gone in and changed the ranges to fit on to my actual spreadsheet [dates are the "F" column and the Diff is the "AB" column]

=AVERAGE(INDEX(SORT(INDEX(SORT(((Sheet2!F$18:F$38):(Sheet2!$AB18:$AB38)),1,-1),SEQUENCE(20),2),,1),SEQUENCE(10)))
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
As they are no next to each other you would need to use
Excel Formula:
=AVERAGE(INDEX(SORT(INDEX(SORT(((Sheet2!F$18:F$38):(Sheet2!$AB18:$AB38)),1,-1),SEQUENCE(20),23),,1),SEQUENCE(10)))
 
Upvote 0

Forum statistics

Threads
1,216,466
Messages
6,130,795
Members
449,593
Latest member
morpheous

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