"Spill error" Posting Values at first instance Problem with excel function

Uncommon1

New Member
Joined
Oct 4, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello,
I have a hypothetical problem where I want a cash flow chart to post a purchase at a first instance where a down payment is met.
In this case B7 >= O17 then start a loan at that point in time

Cell B:18 = =INDEX($D$17:$BK$17,MATCH(TRUE,INDEX(($D$17:$BK$17>$B$7),),0))
Cell D:19 = =IF($B$18=D$17,SEQUENCE(1,$B$9*$B$11,$B$12*-1,0),0)

The function in D19 works if I only drag it to the cell its true. But if I drag it past I get the spill error. I would like this to be automatic due to varying items.

What can I put in D19 to make the payments start posting at the time the down payment is less than or equal to the values in row 17
I am a newbie at functions in excel but I am learning lots from you all.
Thanks,


Ultimately I want it to look like this:
1697129905937.png


What I am getting is this:
1697130003869.png
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Welcome to the MrExcel board!

For the future I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

See if this is the sort of thing you are after.
Notes:
  • I have changed the duration to keep this mini sheet smaller
  • In B19 I have offered an alternative to your B18 formula.
  • Formula in D18 does not need to bee copied across.
23 10 14.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACAD
2Start1/10/2023
3Duration12
7DP Amount175
12Payment6.59
17153045607590105120135150165180195210225240255270285300315330345360375390405
18First instance DP met180000000000006.596.596.596.596.596.596.596.596.596.596.596.590000
19180
Uncommon1
Cell Formulas
RangeFormula
D18:BK18D18=LET(c,COLUMNS(D:BK),b,MATCH(B18,D17:BK17,0)-1,m,MIN(B3,c-b),a,c-b-m,p,TAKE(TRIM(TEXTSPLIT(REPT(B12&" ",c)," "))+0,,m),bp,IF(b=0,p,HSTACK(TAKE(TEXTSPLIT(TRIM(REPT("0 ",c))," ")+0,,b),p)),IF(a=0,bp,HSTACK(bp,TAKE(TEXTSPLIT(TRIM(REPT("0 ",c))," ")+0,,a))))
B18B18=INDEX($D$17:$BK$17,MATCH(TRUE,INDEX(($D$17:$BK$17>$B$7),),0))
B19B19=AGGREGATE(15,6,D17:BK17/(D17:BK17>=B7),1)
Dynamic array formulas.
 
Upvote 1
Solution
Thanks,
Not that I totally understand it yet, it works. I will dig in and try to understand the code. Thanks for your time.
I have tried the XL2BB and have yet to make it work. I still get an error that states "this filetype is not supported in Protected View"
 
Upvote 0
it works. I will dig in and try to understand the code. Thanks for your time.
You're welcome. Thanks for the confirmation. :)

I have tried the XL2BB and have yet to make it work. I still get an error that states "this filetype is not supported in Protected View"
Sounds like you need to investigate the first bullet point (XL2BB Icons greyed out) in the 'Known XL2BB issues' section near the top of the instruction page.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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