Sequencing numbers

clandestino800

New Member
Joined
Mar 14, 2021
Messages
19
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hi all,

I have been trying create a list of numbers based on the values of two columns (J and K).
e.g 10-39 should vertically list all numbers from 10 to 39 from L1 to L39 (10, 11, 12, etc).

I tried using SEQUENCE() but that doesn't seem to be the right approach.


.
Screenshot 2024-02-06 132356.png


Thanks in advance for any suggestions!

RB
 
It's not quite clear what you want. In post 1 you say you want the sequence from 10 to 39 but in the image the number go from 31 to 39.
Do you want a sequence of numbers for every row of data you have? Or for every group of rows?
Could you explain in more detail and show us possible scenarios and expected results?
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Sure, I am allocatiing values to weeks that may change (Start Week / End Week) using the start and end date as reference.
The secuence should be able to change in order to allocate the values equally among the weeks. I'm not sure this is the correct approach, though.




Start WeekEnd WeekStart Week Nr.End Week Nr.
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
04.03.2024​
27.09.2024​
10​
39​
29.01.2024​
01.03.2024​
5​
9​
29.01.2024​
01.03.2024​
5​
9​
29.01.2024​
01.03.2024​
5​
9​
29.01.2024​
01.03.2024​
5​
9​
29.01.2024​
01.03.2024​
5​
9​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
28.06.2024​
10​
26​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
04.03.2024​
30.08.2024​
10​
35​
 
Upvote 0
As Scott asked, could you have two different blocks with the same start & end week?
 
Upvote 0
How about
Fluff.xlsm
JKL
1Start Week Nr.End Week Nr.
2103910
3103911
4103912
5103913
6103914
7103915
8103916
9103917
10103918
11103919
12103920
13103921
14103922
15103923
16103924
17103925
18103926
19103927
20103928
21103929
22103930
23103931
24103932
25103933
26103934
27103935
28103936
29103937
30103938
31103939
32595
33596
34597
35598
36599
37102610
38102611
39102612
40102613
41102614
42102615
43102616
44102617
45102618
46102619
47102620
48102621
49102622
50102623
51102624
52102625
53102626
54103510
55103511
Data
Cell Formulas
RangeFormula
L2:L55L2=IF(OR(J2<>J1,K2<>K1),J2,L1+1)
 
Upvote 0
May be an option :

Book2
JKLMNO
11042101042
210421159
31042121026
4104213
5104214
6104215
7104216
8104217
9104218
10104219
11104220
12104221
13104222
14104223
15104224
16104225
17104226
18104227
19104228
20104229
21104230
22104231
23104232
24104233
25104234
26104235
27104236
28104237
29104238
30104239
31104240
32104241
33104242
34595
35596
36597
37598
38599
39102610
40102611
41102612
42102613
43102614
44102615
45102616
46102617
47102618
48102619
49102620
50102621
51102622
52102623
53102624
54102625
55102626
Sheet1
Cell Formulas
RangeFormula
L1:L55L1=VSTACK(SEQUENCE(O1-N1+1,,N1,1),SEQUENCE(O2-N2+1,,N2,1),SEQUENCE(O3-N3+1,,N3,1))
N1:O3N1=UNIQUE(J1:K42)
Dynamic array formulas.
 
Upvote 0
That only works for 3 different sets of numbers & does not take into account the same numbers possibly being repeated.
 
Upvote 0
Dear all,

thank you very much for your help!
The solution suggested by fluff is doing what I needed.

Regards
Randall
 
Upvote 0

Forum statistics

Threads
1,215,200
Messages
6,123,601
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