Sequence to start and resume n rows down

keef2

Board Regular
Joined
Jun 30, 2022
Messages
185
Office Version
  1. 365
Platform
  1. Windows
Hello,

Hoping for a solution to my challenge. I am trying to automatically format the sequence so that it starts at 1 and increased by 1 on sheet 2 to a max number of cell K19 on a sheet 1. Where it becomes a little more complex is I was hoping to have the sequence start in F5 on delivery schedule start at 1 go to 5 columns then drop down to F16 and resume the sequence till the max number is met from K19 on user input. I would always like it to have 5 columns for each level of sequence if that makes sense. Thanks in advance

load list prototype Working.xlsx
ABCDEFGHIJKLMNOPQR
5SummaryQTYUnitSizeNotes/VendorDelivery #1Delivery #2Delivery #3Delivery #4Delivery #5Delivery #6Delivery #7Delivery #8Delivery #9Delivery #10Delivery #11Delivery #12Delivery #13
6Pressure Treated Wood 2,600LF2x
7Pressure Treated Wood - w/ shim510LF2x
8Roof Hatch1EA30"x96"x5.25"
9Sumps10EA8x8
10Crickets5EA
11Expansion Joint - Backer Rod510LF
12Expansion Joint - Batt Insulation510LF
13Expansion Joint - EPDM510LF
14Froth Pak15EA
Delivery Schedule
Cell Formulas
RangeFormula
A5:E14A5=IF(FILTER('User Input '!M31:Q43,'User Input '!N31:N43>0)=0,"",FILTER('User Input '!M31:Q43,'User Input '!N31:N43>0))
F5:R5F5=IFERROR("Delivery #"&SEQUENCE(,'User Input '!K19,1,1),"")
Dynamic array formulas.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
To be clear whatever K19 on sheet 1 is equal to in this example 13 i would like it to be similar format to this: Note K19 can be any number. Lastly, I don't know what the best way to handle this whether sequence & offset or match & index but really not to familiar with writing this complex formula. Or if there is a VBA code that is easier I'm open to that just want it to run automatically if K19 on sheet 1 contains a value. Again hope this makes sense and thanks again.

load list prototype Working.xlsx
ABCDEFGHIJ
5SummaryQTYUnitSizeNotes/VendorDelivery 1Delivery 2Delivery 3Delivery 4Delivery 5
6Pressure Treated Wood 2,600LF2x
7Pressure Treated Wood - w/ shim510LF2x
8Roof Hatch1EA30"x96"x5.25"
9Sumps10EA8x8
10Crickets5EA
11Expansion Joint - Backer Rod510LF
12Expansion Joint - Batt Insulation510LF
13Expansion Joint - EPDM510LF
14Froth Pak15EA
15
16Delivery 6Delivery 7Delivery 8Delivery 9Delivery 10
17
18
19
20
21
22
23
24
25
26
27Delivery 11Delivery 12Delivery 13
28
29
30
31
32
33
34
35
36
Delivery Schedule
Cell Formulas
RangeFormula
A5:E14A5=IF(FILTER('User Input '!M31:Q43,'User Input '!N31:N43>0)=0,"",FILTER('User Input '!M31:Q43,'User Input '!N31:N43>0))
Dynamic array formulas.
 
Upvote 0
Hi & welcome to MrExcel.
Will you be looking to enter information in F6:J14?
 
Upvote 0
In that case you will need to put a separate formula into each row.
 
Upvote 0
In that case you will need to put a separate formula into each row.
Im ok with that but what would that formula look like? is it similar to the sequence formula i already used? What i dont understand is say K19 = 4 i only want to see sequence 1 thru 4. However if K19=21 or whatever i would want it to continue down till it reaches K19 value. Thanks again!
 
Upvote 0
How about like
Fluff.xlsm
ABCDEFGHIJK
18
2
3
4
5Delivery 1Delivery 2Delivery 3Delivery 4Delivery 5
6
15
16Delivery 6Delivery 7Delivery 8
17
26
27 
28
29
Database
Cell Formulas
RangeFormula
F5:J5F5="Delivery "&SEQUENCE(,MIN(5,F1))
F16:H16F16=LET(a,F1-5,IF(a<=0,"","Delivery "&SEQUENCE(,MIN(5,a),6)))
F27F27=LET(a,F1-10,IF(a<=0,"","Delivery "&SEQUENCE(,MIN(5,a),11)))
Dynamic array formulas.
 
Upvote 0
Solution
How about like
Fluff.xlsm
ABCDEFGHIJK
18
2
3
4
5Delivery 1Delivery 2Delivery 3Delivery 4Delivery 5
6
15
16Delivery 6Delivery 7Delivery 8
17
26
27 
28
29
Database
Cell Formulas
RangeFormula
F5:J5F5="Delivery "&SEQUENCE(,MIN(5,F1))
F16:H16F16=LET(a,F1-5,IF(a<=0,"","Delivery "&SEQUENCE(,MIN(5,a),6)))
F27F27=LET(a,F1-10,IF(a<=0,"","Delivery "&SEQUENCE(,MIN(5,a),11)))
Dynamic array formulas.
you are a rock star thanks!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,098
Messages
6,170,100
Members
452,301
Latest member
QualityAssurance

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