Solved

Excel - Remove text

Posted on 2014-10-12
3
149 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 48

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 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

14 Experts available now in Live!

Get 1:1 Help Now