brightyoyo
New Member
Hi, I am trouble getting this array formula
=SUBSTITUTE(LEFT(A2,MIN(IFERROR(SEARCH({"0","1","2","3","4","5","6","7","8","9"},A2),999))-1)&SUBSTITUTE(A2,LEFT(A2,MIN(IFERROR(SEARCH({"0","1","2","3","4","5","6","7","8","9"},A2),999))-1),""),",",","&LEFT(A2,MIN(IFERROR(SEARCH({"0","1","2","3","4","5","6","7","8","9"},A2),999))-1))
Form NARAYANK991
to work in this macro.
Range("D1").Select
Selection.FormulaArray = _
"=SUBSTITUTE(LEFT(RC[-3],MIN(IFERROR(SEARCH({""0"",""1"",""2"",""3"",""4"",""5"",""6"",""7"",""8"",""9""},RC[-3]),999))-1)&SUBSTITUTE(RC[-3],LEFT(RC[-3],MIN(IFERROR(SEARCH({""0"",""1"",""2"",""3"",""4"",""5"",""6"",""7"",""8"",""9""},RC[-3]),999))-1),""""),"","","",""&LEFT(RC[-3],MIN(IFERROR(SEARCH({""0"",""1"",""2"",""3"",""4"",""5"",""6"",""7"",""8"",""9""},RC[-3]),999))-1))"
Range("D1").Select
Selection.Copy
Range("D2:D52").Select
ActiveSheet.Paste
=SUBSTITUTE(LEFT(A2,MIN(IFERROR(SEARCH({"0","1","2","3","4","5","6","7","8","9"},A2),999))-1)&SUBSTITUTE(A2,LEFT(A2,MIN(IFERROR(SEARCH({"0","1","2","3","4","5","6","7","8","9"},A2),999))-1),""),",",","&LEFT(A2,MIN(IFERROR(SEARCH({"0","1","2","3","4","5","6","7","8","9"},A2),999))-1))
Form NARAYANK991
to work in this macro.
Range("D1").Select
Selection.FormulaArray = _
"=SUBSTITUTE(LEFT(RC[-3],MIN(IFERROR(SEARCH({""0"",""1"",""2"",""3"",""4"",""5"",""6"",""7"",""8"",""9""},RC[-3]),999))-1)&SUBSTITUTE(RC[-3],LEFT(RC[-3],MIN(IFERROR(SEARCH({""0"",""1"",""2"",""3"",""4"",""5"",""6"",""7"",""8"",""9""},RC[-3]),999))-1),""""),"","","",""&LEFT(RC[-3],MIN(IFERROR(SEARCH({""0"",""1"",""2"",""3"",""4"",""5"",""6"",""7"",""8"",""9""},RC[-3]),999))-1))"
Range("D1").Select
Selection.Copy
Range("D2:D52").Select
ActiveSheet.Paste