Spilling Results only between certain dates

Voski

New Member
Joined
Jul 26, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello all - I'm trying to spill the results of a horizontal dynamic spilled array. For this let's just use the example SEQUENCE(,7).
I would like to display those 7 results but only between 2 dates of a projection for construction costs. It does not work
and returns spill errors even if I use something like IF(AND(month>=startmonth,month<=end month),SEQUENCE(,7). Old school straight line results are not acceptable in this case.
The projected dates are 1-60 for 5 years; SEQUENCE(,60). Please help, thank you. I need the numbers 1-7 showing in months 4-10 without causing #SPILL errors. Note my results are not linear, they are based on a curve.
Month #
1​
2​
3​
4​
5​
6​
7​
8​
9​
10​
11​
12​
=SEQUENCE(,7)
1​
2​
3​
4​
5​
6​
7​
Start Month
4​
End Month
10​
# of Months
7​
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Try this

Book1
ABCDEFGHIJKLM
1Month #123456789101112
2   1234567  
3Start Month4
4End Month10
5# of Months7
Sheet1
Cell Formulas
RangeFormula
B2:M2B2=IF(B$1 =$B3,1,IF( AND(B$1>$B3,B$1<=$B4),A2+1,""))
B5B5=B4-B3+1
 
Upvote 0
Try this, perhaps:
Book2
ABCDEFGHIJKLM
1Month #123456789101112
2 1234567
3Start Month4
4End Month10
5# of Months7
Sheet1
Cell Formulas
RangeFormula
B2:K2B2=IF(SEQUENCE(,B4,-B3+2)>0,SEQUENCE(,B4,-B3+2),"")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,087
Messages
6,123,050
Members
449,092
Latest member
ikke

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