Subtract text in one cell from another?

G

Guest

Hi,

I would like to subtract text in one cell from another, can anybody tell me
if it can be done?

For example:
Cell A1 has "John Smith"
Cell B1 has "John Smith violin teacher"

Can I subtract cell A1's contents from cell B1's contents to leave "violin
teacher"?
 
D

Dave Peterson

I'd add...

=trim(substitute(B1,A1,""))

to get rid of the space between smith and violin.

Or maybe even...

=substitute(B1,A1&" ","")
 

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