Solved

extract number sequence in excel

Posted on 2015-01-13
3
127 Views
Last Modified: 2015-01-13
I have data in the form:

1963 V5A1T 1001 6960
1964 V5A1T 6961 61346
1965 V5A1T 61347 92876

I would like to extract the number sequence after the second and third spaces and store in a separate column.

not sure how
0
Comment
Question by:PeterBaileyUk
3 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40546561
Why not highlight the data, and select Data - Text to Columns - select Delimited - and select "Space" and Finish.
0
 
LVL 26

Expert Comment

by:Shaun Kline
ID: 40546566
You can use:
=SEARCH(CHAR(127),SUBSTITUTE(A2," ",CHAR(127),<n>))

Open in new window

to find the nth occurrence of a space. Using this with the MID formula:
MID(A2, SEARCH(CHAR(127),SUBSTITUTE(A2," ",CHAR(127),2)), SEARCH(CHAR(127),SUBSTITUTE(A2," ",CHAR(127),3)) - SEARCH(CHAR(127),SUBSTITUTE(A2," ",CHAR(127),2)))

Open in new window


This formula will pull out the text between the 2nd and 3rd space if your text is in A2.
0
 

Author Closing Comment

by:PeterBaileyUk
ID: 40546604
Thank you worked a treat very quick and simple
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

770 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