Average value by minimum path rule and with updating/changing criteria

Krabben

New Member
Joined
Aug 19, 2020
Messages
12
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hey

I'm looking for some help to make my life and thesis run abit smoother :)

So basically i'm looking for a formula that can find the average in a particular way with a updating/changing criteria.
  1. Lets say i have a data set ranging from B1:B10
  2. I have to average the dataset by using a "minimum path rule", starting from the highest cell number (B10 - Cell value 20 in the picture) and then working towards B1.
  3. With "minimum path rule" i mean, that any cell value higher than the previously minimum cell value, should be excluded from the equation.
I hope my question is understandable :) If possible i would like to avoid a helper coloumn, since my dataset changes constantly.

Anmærkning 2020-08-19 001523.jpg


Any ideas?



Thanks
 
There's a minor tweak to make it work in a different range:

Book1
BCDE
1
2
3
4
5Minimum path average
614.66666677
7
8Cap
999
10
118
1212
136
1414
1516
168
1717
1818
1919
2020
Sheet1
Cell Formulas
RangeFormula
D6D6=AVERAGE(IF(B11:B20<D9,IF(B11:B20<=SUBTOTAL(5,OFFSET(B11,ROW(B11:B20)-ROW(B11),0,ROW(B20)-ROW(B11:B20)+1)),B11:B20)))
E6E6=AVERAGE(IF(B11:B20<D9,IF(B11:B20<=SUBTOTAL(5,OFFSET(B11,0,0,ROW(B11:B20)-ROW(B11)+1)),B11:B20)))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,214,636
Messages
6,120,668
Members
448,977
Latest member
moonlight6

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