Example:
A1 = Mickey Mantle Baseball Cards
B1 = Mickey Mantle
C1 = Mantle, Mickey
Desired output:
D1 = Mantle, Mickey Baseball Cards
Example:
A1 = Mickey Mantle Baseball Cards
B1 = Mickey Mantle
C1 = Mantle, Mickey
Desired output:
D1 = Mantle, Mickey Baseball Cards
Try this in D1:
=SUBSTITUTE(A1,B1,C1)
Hi,
This is clearly a much simplified example and probably doesn't represent the size of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.
Therefore upload your real workbook (or at least a cut down copy), and manually add the results you expect to see. Clearly identify which is original data and which are the results and in a note clearly explain how you have arrived at your results.
That said and for the example given
D1:Formula:Please Login or Register to view this content.
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
My pleasure and thanks for the rep.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks