Using MIN function in dynamic arrays

zn24

New Member
Joined
Apr 30, 2024
Messages
4
Office Version
  1. 365
Platform
  1. MacOS
Hi, I'm trying to figure out the minimum value between two different rows setup as dynamic arrays. I understand using the basic MIN function but when i add the # signs to make it dynamic it doesn't work.

I wondering how I can use the min function within a dynamic array. Thank you.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
We'd need more information. What is the formula you're using? Can you provide an example?
 
Upvote 0
We'd need more information. What is the formula you're using? Can you provide an example?
Sure ofcourse. So I'm trying to choose the minimum between two values

I used the formula MIN(J327#,J329#) and it returns this to me
(66,196,505,848,262,900,000,000,000,000,000,000,000,000,000,000,000,000,000,000.0)

Once I remove the # signs it works normal for the cell its in but then it doesn't spill.

Thank you.


LNC - Zainab Nwachuku.xlsx
BCDEFGHIJKLMN
322Operating cashflow284.3290.3344.7399.7460.7
323Investing cashflow(225.0)(250.0)(275.0)(275.0)(275.0)
324Manadatory debt repayments (75.0)(75.0)(75.0)(75.0)(75.0)
325Share issuance/buybacks(150.0)(140.0)---
326Dividend payouts(41.2)(49.8)(59.6)(69.4)(80.1)
327(206.8)(224.4)(64.9)(19.8)30.6
328
329Opening balance -####################################
330Issuance/repayment (2,089,296,208,544,980,000,000,000,000,000.0)
331Closing balance 0.0(2,089,296,208,544,980,000,000,000,000,000.0)####################################
332Interest expense5.25%-####################################
333
334Net interest expense53.1####################################
Model
Cell Formulas
RangeFormula
J322:N322J322=J105#
J323:N323J323=J112#
J324:N324J324=J309#+J315#
J325:N325J325=J273#+J280#
J326:N326J326=-(J276#+J284#)
J327:N327J327=J322#+J323#+J324#+J325#+J326#
I331I331=I155
E332E332=Assumptions!N29
J329:N329J329=IFS(J9#=start,I331,J9#>start,SUMIFS(J331:N331,J9#,J9#-1))
J330J330=MIN(J327#,J329#)
J331:N331J331=J329#+J330#
J332:N332J332=E332*J329#
J334:N334J334=J311#+J317#+J332#-J304#
Dynamic array formulas.
Named Ranges
NameRefers ToCells
start=Assumptions!$F$9J329
 
Upvote 0
Once I remove the # signs it works normal for the cell its in but then it doesn't spill.
MIN is not going to spill - it will give you the (single) lowest value for all the cells in those two ranges. You probably need something like BYCOL or MAP so that you can get the min value for each column.
 
Upvote 0
You can try something like this maybe..
Book1
ABCDEFGHIJ
412345678910
510987654321
6
71234554321
Sheet4
Cell Formulas
RangeFormula
A4:J4A4=SEQUENCE(1,10)
A5:J5A5=SEQUENCE(1,10,10,-1)
A7:J7A7=IF(A4#<A5#,A4#,A5#)
Dynamic array formulas.
 
Upvote 0
MIN is not going to spill - it will give you the (single) lowest value for all the cells in those two ranges. You probably need something like BYCOL or MAP so that you can get the min value for each column.
Thank you so much I used the BYCOL formula and it works perfectly. =BYCOL(J327:N328,LAMBDA(column,MIN(column)
 
Upvote 0
You can try something like this maybe..
Book1
ABCDEFGHIJ
412345678910
510987654321
6
71234554321
Sheet4
Cell Formulas
RangeFormula
A4:J4A4=SEQUENCE(1,10)
A5:J5A5=SEQUENCE(1,10,10,-1)
A7:J7A7=IF(A4#<A5#,A4#,A5#)
Dynamic array formulas.


Thank you so much I used the BYCOL formula then wrapped it up with an IF statement to account for the negative figures turned positive, like this IF(J327#<0,-J327#,BYCOL(J327:N328,LAMBDA(column,MIN(column)
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,947
Members
449,480
Latest member
yesitisasport

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