Find and Replace with Wild Cards

R

Rand Hager

How do I replace only the first occurence of a Find match
in a string or cell if that string is repeated without
manually replaceing each one?
for ex.
IN 31-1012101-3
FIND 101
REPLACE 102
RESULT 31-1022101-3
 
D

Debra Dalgleish

You could use the SUBSTITUTE function, and specify the instance number:

=SUBSTITUTE(B2,"101","102",1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top