Aug 23 2024 06:05 AM - edited Aug 23 2024 06:25 AM
Good morning, I was looking to add a ,(coma) and a space after every 4 characters.
For example,
qwerasdfzxcv ------> qwer, asdf, zxcv
not always will it always be 12 characters but will always be sets of 4 characters
Ive been able to just add 1 , after qwer, but no multple using
=replace(a1,5,0,", ")
im sure I can probably tie in the same formula Mutiple times but have no clue how
Aug 23 2024 06:27 AM
SolutionAug 23 2024 06:44 AM - edited Aug 23 2024 06:45 AM
this worked like a charm but just noticed that I do indeed have some charters that 5 characters and not always 4 so its mixed combination of 4 and 5 character all in random sequence. There some instances where it even has a space so then it throws everything off.
For example,
qwer asdfzxcv
Regardless thank you for the help and your answer was indeed correct when always a 4 character combination
Aug 23 2024 07:54 AM
Is there a rule that determines when to use 4 or 5 characters?
Aug 23 2024 02:45 PM
Aug 23 2024 06:27 AM
Solution
=TEXTJOIN(", ", TRUE, MID(A1, SEQUENCE(ROUNDUP(LEN(A1)/4, 0), , , 4), 4))