troubleshooting Question

Substitute every 4th instance of character in string? Lambda/Let iteration?

Avatar of Anthony Mellor
Anthony MellorFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft ExcelMicrosoft Office
9 Comments1 Solution21 ViewsLast Modified:
Substitute every 4th instance of character in string?

So replace every 4th comma with ; and just to spice it up a bit, make that replace with ";" (replace comma with "quotes semi colon quotes") . Does that need an escape or more quotes, I tried and failed?

SUBSTITUTE(text, old_text, new_text, [instance_num])
It's such a shame [instance_num] provides only one instance. Google doesn't know.


Thought it would be easy, but it seems not.
Now I am thinking Lambda/Let iteration?

No VBA split thanks.

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros