Solved

extract numbers / text from a column

Posted on 2016-10-20
2
40 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
2 Comments
 
LVL 31

Expert Comment

by:Rob Henson
Comment Utility
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

by:
Rgonzo1971 earned 500 total points
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now