Replace only a specific occurrence of a character, not all of them.
Copy this formula
=SUBSTITUTE(A2, " ", "-", 2)SUBSTITUTE's optional fourth argument targets a single occurrence by number. Here it swaps only the second space for a dash, leaving the others untouched.
=SUBSTITUTE("a-b-c-d", "-", " ", 3)→a-b-c dOnly the 3rd dash becomes a space.
Replace it with a unique marker via SUBSTITUTE, then FIND that marker.
Need a formula for your own data?
Describe what you want in plain language and let ExcelGPT write, explain, and verify the formula — free to start, no plugin.