ABC Company Product XXXX for Partner QTY
say I wanted to remove the "ABC Company" and "for Partner"
I used this formula :
IF( CONTAINS(Name,"for Partner") , MID(Name,12,99), Name)
but it only results to Product XXXX for Partner QTY . How would i revise my formula to remove the "for Partner" that's in the middle of the text . Note that the chars after the "for Partner" can be longer depending on the record's name.
5 answers
Alright, so here is the exact solution to get what you want using the example you provided:
Right(Left(Name,Find(" for Partner", Name)),
Len(Left(Name,Find(" for Partner", Name)))-
Find("Product",Left(Name,Find(" for Partner", Name)))+1)
& " " &
Right(Name,Len(Name)-(Find(" for Partner", Name)+12))