How to append a number to the beginning of a spill?

Rnkhch

Well-known Member
Joined
Apr 28, 2018
Messages
578
Office Version
  1. 365
Platform
  1. Windows
Hello,

How can I add a number to the beginning of a spill? For example, in the spill from the solution of my previous post:


I want to append a number "1" to the beginning of the spill. I tried the strategy that was used in the solution of one of my other posts below, but it doesn't work well (B3):


Blank power workbook1.xlsx
ABCDEFGHI
1 45 , 33, A- ,17,88 , 12 ,39152436394657
2
3My attempt:12436394657#N/A
4
5Desired output:1152436394657
6
Sheet6
Cell Formulas
RangeFormula
B1:G1B1=LET(s, SEQUENCE(1,LEN(A1)), n, (MID(A1,s,1)=",")*s, FILTER(n,n<>0))
B3:H3B3=LET(x,LET(s, SEQUENCE(1,LEN(A1)), n, (MID(A1,s,1)=",")*s, FILTER(n,n<>0)),z,COUNT(x),a,TRANSPOSE(SEQUENCE(z+1)),IF(a>1,x,1))
Dynamic array formulas.



Thanks for any input! 🤗
 
Last edited:

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
replace the A1 in yoir formula with(both of them)

“,”&A1
 
Upvote 0
Excel Formula:
=LET(s,SEQUENCE(1,LEN(A1)),N,(MID(","&A1,s,1)=",")*s,IFERROR(1/(1/(FILTER(N,N<>0)-1)),1))
 
Upvote 0
Solution
Another option
Excel Formula:
=LET(s,SEQUENCE(,LEN(A1)),n,(MID(","&A1,s,1)=",")*s,f,FILTER(n,n<>0),IF(f=1,1,f-1))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,225,761
Messages
6,186,882
Members
453,381
Latest member
CGDobyns

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