Spilled formula to return the min of a reducing range

ED38

New Member
Joined
Mar 29, 2024
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I am blocked with a formula trying to get the minimum of a list of values below each row of the considered value.
Sorry, I am maybe not very clear it is not easy to phrase with words so I attached my case below, I am sure you will better understand.

Thank you for your help.

Book1
ABCDEFGHIJKLMNO
1
214
3Ranges%Discounted
4lowerupperdiscountFor each range :MinMaxExpectedto get thisMy try But it removed the min of the whole H6:H18 range (6,6), not the min of the cells below each row!!
51110,0%1311114,4056,0%4,4
6122645,0%1226,614,33,2358,1%7,7
7275159,0%11311,0720,914,7951,3%14,31
8528169,0%10416,1225,114,7946,7%18,51
98210172,0%9522,9628,287,96-49,6%21,68
1010212675,0%8625,531,511,18-86,3%24,9
1112725284,0%7720,3240,322,3788,2%33,72
1225350185,0%6837,9575,1519,9346,4%68,55
1350275189,0%5955,2282,6122,4518,0%76,01
147521 50192,0%41060,16120,0814,9475,1%113,48
151 5022 00193,0%311105,14140,0719,9542,9%133,47
162 0022 50194,0%212120,12150,0612,4558,4%143,46
172 5023 00194,5%113137,61165,05514,9645,5%158,455
183 00299 999 99995,0%113150,150000004999849,850,0%4999993
19
20
Sheet1
Cell Formulas
RangeFormula
C2C2=COUNT(B5:B18)
F5:F18F5=IF(Tier-SEQUENCE(ROWS(B5:B18),)>0,Tier-SEQUENCE(ROWS(B5:B18),),1)
G5:G18G5=IF(SEQUENCE(ROWS(B5:B18),)<Tier,SEQUENCE(ROWS(B5:B18),),Tier-1)
H5:I18H5=B5:B18*(1-$D5:$D18)
J5:J17J5=I5-MIN(H6:$H$18)
K5:K18K5=1-J5/(I5-H5)
J18J18=I18-MIN(B$35:$B36)
N5:N18N5=I5#-BYROW(TRANSPOSE(OFFSET(H5#,G5#,,F5#,)),LAMBDA(x,MIN(x)))
Dynamic array formulas.
Named Ranges
NameRefers ToCells
Tier=Sheet1!$C$2F5:G5
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
How about
Excel Formula:
=LET(r,ROWS(I5#),MAP(I5#,SEQUENCE(r),LAMBDA(a,b,a-IF(b=r,0,MIN(DROP(H5#,b))))))
 
Upvote 0
Solution
Thats perfect!
once again!
Thanks a lot Fluff, you saved my day for the 2nd time, very valuable. I appreciate.
There are still excel function I do not know at all...
Thanks for your help and thanks for sharing your expertice
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,198
Messages
6,123,593
Members
449,109
Latest member
Sebas8956

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