Solved

# extract numbers / text from a column

Posted on 2016-10-20
40 Views
Hello experts,

how to extract numbers and text from column A to column B as follow:

Data (column A)                              result  (column B)
88888-AMERICA S                              88888-AMERICA
88888-008-08                              88888-008
0
Question by:Leonardo M

LVL 31

Expert Comment

Can you expand on the basis of the split between the two segments of data??

The first example drops the last two characters, the second drops the last 3 characters.

To drop last two characters:

=LEFT(A1,LEN(A1)-2)
0

LVL 48

Accepted Solution

Rgonzo1971 earned 500 total points
Hi,

pls try
``````=IF(ISERROR(FIND("-",A1,FIND("-",A1)+1)),IF(ISERROR(FIND(" ",A1,FIND("-",A1)+1)),A1,LEFT(A1,FIND(" ",A1,FIND("-",A1)+1))),LEFT(A1,FIND("-",A1,FIND("-",A1)+1)-1))
``````
Regards
0

## Join & Write a Comment Already a member? Login.

### Suggested Solutions

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…
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 will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

#### 728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

#### Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!