Solved

extract numbers / text from a column

Posted on 2016-10-20
2
64 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 51

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
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…
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…

705 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