Drag formula down column to show consecutive large numbers as they vary...

Dan10

New Member
Joined
Nov 26, 2021
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Can someone please provide an Excel formula to do this using one or more of the lookup Columns 1, 2 and/or 3 so the large numbers are repeated below each where the ''1s' or '1 to 9s' appear in Columns 2 or 3 respectively - Formula in Column4? (the following is just a sample. I would like all the numbers in Column1 to do this eventually...

Column1 LookupColumn2Column3Column4
106106106Formula
66811Formula
196412Formula
422113Formula
577114Formula
764115Formula
984216Formula
1241017Formula
1535018Formula
1870019Formula
26674668668Formula
11Formula
12Formula
13Formula
14Formula
15Formula
16Formula
17Formula
19641964Formula
11Formula
12Formula
13Formula
14Formula
15Formula
16Formula
 
Last edited:

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I don't have a drag down solution, but here's an array option.
Book1
ABCD
1106106106
266811
3196412
4422113
5577114
6764115
7984216
81241017
91535018
101870019
1126674106106
1211
1312
1413
1514
1615
1716
1817
1918
2019
21668668
2211
2312
2413
2514
2615
2716
2817
2918
3019
3119641964
3211
3312
3413
3514
3615
3716
3817
3918
4019
Sheet1
Cell Formulas
RangeFormula
C1:C120C1=LET(s,SEQUENCE(SUM(SEQUENCE(ROWS(A1:A11)+1,,10,0)),,0),d,SCAN(1,SEQUENCE(ROWS(A1:A11),,10,0),LAMBDA(a,b,SUM(a,b))),x,XLOOKUP(s,d,A1:A11,,1),IF(MOD(s,10)<>0,1,x))
D1:D120D1=LET(s,SEQUENCE(SUM(SEQUENCE(ROWS(A1:A11)+1,,10,0)),,0),d,SCAN(1,SEQUENCE(ROWS(A1:A11),,10,0),LAMBDA(a,b,SUM(a,b))),x,XLOOKUP(s,d,A1:A11,,1),IF(MOD(s,10)=0,x,MOD(s,10)))
Dynamic array formulas.
 
Upvote 0
One dynamic formula

Book1
ABCD
1106106106
266811
3196412
4422113
5577114
6764115
7984216
81241017
91535018
101870019
1126674668668
1211
1312
1413
1514
1615
1716
1817
1918
2019
2119641964
2211
2312
2413
2514
2615
2716
2817
2918
3019
3142214221
Sheet1
Cell Formulas
RangeFormula
C1:D110C1=LET(s,SEQUENCE(9),z,s^0,DROP(REDUCE("",A1:A11,LAMBDA(a,b,VSTACK(a,IFERROR(VSTACK(b,HSTACK(z,s)),b)))),1))
Dynamic array formulas.
 
Upvote 0
Thank you for your reply. I dont think the formula is doing what I was expecting, probably because I did not explain very well. I need the formula to copy 106 down to the next large number (1964), then 1964 down to the next, so that the large numbers (106, 668 etc) are repeated in the one column. The formula looks to place the original column/s in which I perhaps wrongly showed and/or did not show an example of the result for clarity?! So, the result should look like this:

106​
106​
106​
106​
106​
106​
106​
106​
106​
106​
668​
668​
668​
668​
668​
668​
668​
 
Upvote 0
Thank you. I have replied to the second post (above). The formula did not do what I was hoping, probably as I did not explain very well?!
 
Upvote 0
The question wasn't clear. We thought you want to go from A-> B and C. Is this what you're looking for?
Book1
ABCDE
1106106106
26681106
319641106
442211106
557711106
676411106
798421106
8124101106
9153501106
10187001106
1126674668668
121668
131668
141668
151668
161668
171668
181668
1919641964
2011964
2111964
2211964
2311964
2411964
2511964
Sheet3
Cell Formulas
RangeFormula
D1:D25D1=SCAN(1,B1:B25,LAMBDA(a,b,IF(b=1,a,b)))
Dynamic array formulas.
 
Upvote 1
Solution

Forum statistics

Threads
1,215,219
Messages
6,123,689
Members
449,117
Latest member
Aaagu

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