Solved

Excel - Remove text

Posted on 2014-10-12
3
151 Views
Last Modified: 2014-10-12
hi folks,

=UPPER(IFERROR(MID(D2;1;FIND("(TEST)";D2)-1);D2))  removes JONES, MIKE (TEST) to JONES, MIKE

with the same formula i like to remove also (TEST )

the result should be  JONES, MIKE (ZZZZZZ)

JONES, MIKE (TEST ZZZZZZ) to JONES, MIKE (ZZZZZZ)

thanks in advance
mandy
0
Comment
Question by:Mandy_
3 Comments
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 350 total points
ID: 40375867
Hi,

pls try

=UPPER(SUBSTITUTE(IFERROR(MID(D2,1,FIND("(TEST)",D2)-1),D2),"TEST ",""))

Regards
0
 
LVL 11

Assisted Solution

by:zalazar
zalazar earned 150 total points
ID: 40376124
You might try this formula:
=IF(ISERR(SEARCH("(TEST)";D2;1));MID(D2;1;SEARCH("(TEST *)";D2;1)) & MID(D2;SEARCH("(TEST *)";D2;1)+6;9999);SUBSTITUTE(D2;" (TEST)";""))

Open in new window

0
 
LVL 2

Author Closing Comment

by:Mandy_
ID: 40376365
Perfect. Thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now