Concat Help..Increment Autofill by a fixed number

paulselman

New Member
Joined
May 3, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi, I hope someone can help me...

I am using Excel to prepare some data for an automated service to do mass deletions from a system

I have a list with circa 150000 references on it. I have to create a single cell with a maximum of 25000 characters in it and each individual reference has to be separated by a semicolon

The data looks something like this
18045;
18152;
18154;
18157;
18161;

I need to combine a maximum of 4000 cells in a row of reference numbers with semicolon as above but in order for the system that will take in the data to work the cell with the result of the concat must have no more than 25000 characters.

I am looking for a way to prepare the data based on that criteria for the entire column that contains 150000 rows so that I end up with a series of rows that I can just paste onto the next system. I have used CONCAT but dragging this down does not increment as I need it to

Thanks in advance
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi & welcome to MrExcel.
If your data is always 6 characters long how about
+Fluff v1.xlsm
ABC
1
249635;49635;53012;37754;29271;50713;53809;43520;53169;43361;50778;
353012;55880;36306;42612;34869;48040;51821;53189;42386;43575;53499;
437754;53299;39376;42649;45421;41521;40123;40182;45229;44270;51388;
529271;51846;54072;52813;48767;45989;43860;51052;45479;40880;47094;
650713;50068;42317;42399;35831;56421;52321;46109;50848;52646;48636;
753809;52545;43621;59612;
843520; 
953169; 
1043361; 
1150778; 
1255880;
1336306;
1442612;
1534869;
1648040;
1751821;
1853189;
1942386;
2043575;
2153499;
2253299;
2339376;
2442649;
2545421;
2641521;
2740123;
2840182;
2945229;
3044270;
3151388;
3251846;
3354072;
3452813;
3548767;
3645989;
3743860;
3851052;
3945479;
4040880;
4147094;
4250068;
4342317;
4442399;
4535831;
4656421;
4752321;
4846109;
4950848;
5052646;
Sheet2
Cell Formulas
RangeFormula
C2:C11C2=CONCAT(INDEX($A$2:$A$150000,SEQUENCE(10,,ROWS(C$2:C2)*10-9)))


For 4000 cells each time it would be
Excel Formula:
=CONCAT(INDEX($A$2:$A$150000,SEQUENCE(4000,,ROWS(C$2:C2)*4000-3999)))
 
Upvote 0
Another option if you have the Lambda function
=LET(Rws,ROUNDUP(COUNTA(A2:A150000)/4000,0),MAKEARRAY(Rws,1,LAMBDA(r,c,CONCAT(INDEX(A2:A150000,SEQUENCE(4000,,r*4000-3999))))))
 
Upvote 0

Forum statistics

Threads
1,214,414
Messages
6,119,375
Members
448,888
Latest member
Arle8907

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