Solved

Excel - Remove text

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

813 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

15 Experts available now in Live!

Get 1:1 Help Now