Solved

How do I retrieve only the characters after a "-" in a string    - Excel 2007

Posted on 2011-03-03
2
191 Views
Last Modified: 2012-05-11
I have a string of data that has a data of different lengths after the "-".  I would like to get only the data after the hyphen.  Field = $B$7

ie   - 100000 - England
        200000 - Dominican Republic
        300000 -  United States
        400000 - Federation of South Africa

How can I do this?
0
Comment
Question by:morinia
2 Comments
 
LVL 3

Accepted Solution

by:
longtruong earned 250 total points
Comment Utility
Hi Morinia,

You can try this formula:

=MID(A1,FIND("- ",A1)+2,LEN(A1))

A1 is referred to the cell which contains your data (i.e. 1000000 - England).

Hope it helps.

Long
0
 
LVL 30

Expert Comment

by:SiddharthRout
Comment Utility
If you have a column full of data then I would advise you to use Excel's inbuilt feature which is "Text To Columns" using "-" as a delimiter.

Sid
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
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…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

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

15 Experts available now in Live!

Get 1:1 Help Now