Solved

Excel - Remove text

Posted on 2014-10-12
3
158 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 50

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 12

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

730 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