You should use formula in Cells instead of conditional formatting.
=SUBSTITUTE(C2,B2,"")
Or
=TEXTJOIN("+",,TEXTSPLIT(SUBSTITUTE(C2,B2,""),"+"))
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I wanted to remove a part of text from a cell that is in another cell.
But I don't know how to write it in the conditional formatting exactly (I still have a problem with using dollars)
Please help
Thank you
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
You cannot use conditional formatting to change the value of a cell, only to change the way it is displayed.
You can use a formula in another cell. For example in D2:
=SUBSTITUTE(C2, B2, "")
Fill down.
Please note that this will return DOG++FISH in D2, and +CAT+FISH in D3.
To get around this:
=MID(SUBSTITUTE("+"&C2, "+"&B2, ""), 2, 100)