How would you swap two characters in a string in Excel, with string and position to swap specified by the user?
For example:
User inputs a sentence: "Hi there!"
User inputs an integer between 1 and half of the LEN(sentence): 2
Output: "He theri!"
I am able to replace the first instance, but cannot figure out a way to replace the second.
So far I have used the REPLACE and MID funciton to accomplish what I have.
Thanks!