Substitute Exact

Cooki

Board Regular
Joined
Jul 31, 2018
Messages
86
Hi All i want to be able to find an exact match when using substitute, not sure if possible.

I currently have the substitute formula working fine up until cell A10

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(E5, A5, B5), A6, B6),A7,B7),A8,B8),A9,B9),A10,B10),A11,B11)


1581413163890.png


Ive tried building formula again but cant get it to work =SUBSTITUTE(EXACT(D12,A13),A13,B13)

But keep getting False

So need the formula to be able to see S5 and S55 as different and substitute for the cells in Column B

1581413415123.png


This is the issue when i just use substitute =SUBSTITUTE(D12,A13,B13)

Result
{0:454545}-{0:S3}-{0:4545455}

Need to the to be
{0:454545}-{0:S3}-{0:969696}
 

Attachments

  • 1581413065733.png
    1581413065733.png
    14.7 KB · Views: 18

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
If the value to be substituted always has a } after it, try
SUBSTITUTE(E5, A5&"}", B5&"}")
 
Upvote 0
If the value to be substituted always has a } after it, try
SUBSTITUTE(E5, A5&"}", B5&"}")

Very close but i still need the format to be the same

output using your formula is
{0:454545-{0:656565-{0:969696

Format needs to carry on like
{0:454545}-{0:S3}-{0:4545455}

Without me adding more } to accommodate for me using } in my substitute

If that makes sense
 
Upvote 0
Did you put the 2nd } as I showed
SUBSTITUTE(E5, A5&"}", B5&"}")
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top