Solved

Edit value

Posted on 2011-02-20
3
217 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
  • 2
3 Comments
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
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 earned 500 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
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…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

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