?
Solved

Edit value

Posted on 2011-02-20
3
Medium Priority
?
230 Views
Last Modified: 2012-05-11
Hello I have a values that I need to evaluate, but what I need to do is if there is a BR FG HZ or BL then ignore that and display the other values example below

RAPL BR   need just RAPL
TSRA FG   need just TSRA
RABR  need just BR
SHRA FG need just SHRA
BLSN FG  need just SN
0
Comment
Question by:sandramac
[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
  • 2
3 Comments
 
LVL 50
ID: 34938796
Hello,

can you check your data sample again?

>> RABR  need just BR

Should that not be RA as the result?

Are these values in cells in a worksheet? If so, try

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"BR",""),"FG",""),"HZ",""),"BL","")

cheers, teylyn
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 34938805
You might also want to add a TRIM function to that, teylyn, otherwise some trailing/leading spaces may remain....

regards, barry
0
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 2000 total points
ID: 34938892
Good catch, barry.

Just wrap a trim() around it

=TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"BR",""),"FG",""),"HZ",""),"BL",""))
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

777 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