Solved

extract numbers / text from a column

Posted on 2016-10-20
2
60 Views
Last Modified: 2016-10-20
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
Comment
Question by:Leonardo M
[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 Comments
 
LVL 33

Expert Comment

by:Rob Henson
ID: 41851771
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 50

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 41851791
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))

Open in new window

Regards
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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 the scrolling table in Microsoft Excel using the INDEX function.

730 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