'Substitute' function with wildcards

  • Thread starter Thread starter bird_222
  • Start date Start date
B

bird_222

Can you use wildcards with the substitute function? This is the
formula I am using.

=SUBSTITUTE(F51,"FY20??","FY2008")

However this doesn't work. It seems that the function is looking for
exactly 'FY20??' and not what matches FY20??. Can anyone help?
 
I don't think wildcards work in substitute. You could instead use
something like this for a one instance replacement:
=LEFT(A1,FIND("FY20",A1)-1)&"FY2008"&MID(A1,FIND("FY20",A1)+6,999)
 

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

Similar Threads

Formula help 1
Substitute function 3
Need Help with Substitute Formulas, etc. 5
wildcard characters 2
More than i substitution 10
Excel VBA 1
Sum with multiple conditions and wildcard 2
HOW TO DO AN IF, IN A MACRO 18

Back
Top