Hello! I need to subtract all the text in one cell, from another cell.
I have for example:
A1 Airline Bus 70C/3R5 Eagle
B1 Airline Bus Eagle
What formula can I use that could give me in cell C1 70R/3R5 ?
Thanks!
Hello! I need to subtract all the text in one cell, from another cell.
I have for example:
A1 Airline Bus 70C/3R5 Eagle
B1 Airline Bus Eagle
What formula can I use that could give me in cell C1 70R/3R5 ?
Thanks!
I think a few more examples are needed, so we can see the variations which can occur in column B. Please attach a sample file.
Pete
try this one
in B1
=TRIM(MID(SUBSTITUTE(MID(A1,FIND("/",A1)-3,255)," ",REPT(" ",255)),1,255))
A B 1A1 Airline Bus 70C/3R5 Eagle 70C/3R5
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
Thanks for the prompt response guys!
Here an example I just made.
Book1.xlsx
I am looking at your file and but I don't think I understand it. Care to elaborate more on what exactly you need?
Thanks
Last edited by AlKey; 07-25-2014 at 01:07 PM.
Hello AlKey,
Sorry I thought was already very simple!! I want to subtract the text in column B from the text in column A, and display it in column C!
So, if I have in cell A the sentence "This is your forum" and in cell B the words "is your", cell C should display "This forum" (This is your forum - is your = This forum)
Hope this time is clear!
Thanks!
Unfortunately, there appears to be no logic, at least not obvious to me, or any particular order in which this task can be accomplished. These parts of the string can be extracted but the formula will not work on anything else for the reasons stated earlier.
Put these formulae in the cells stated:
D1: =LEFT(B1,FIND(" ",B1))
E1: =LEFT(SUBSTITUTE(B1,D1,""),FIND(" ",SUBSTITUTE(B1,D1,"")))
F1: =SUBSTITUTE(B1,D1&E1,"")
G1: =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,D1,""),E1,""),F1,"")
then copy down, as in the attached file. This assumes that you have 3 words to be replaced each time, as your example shows.
Hope this helps.
Pete
Great Pete! Thanks!!! That's exactly what I was looking for![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks