Extracting Series Of Mixed Letters And Numbers From String

Oct 9, 2013

I have got to extract a series of mixed letters & numbers from a cell. The format of the data i need to extract is always [Letter][Letter][Number][Letter][Letter]][Letter][Number][Number]. The problem I've got is the notes field is not in a standard format as it can be anywhere in the cell.

The table below shows the notes cell & the Data I require.

Notes
Required Data
Fault number AB1ABC12 is complete
AB1ABC12
BC2ABC12 status is unknown
BC2ABC12
pending job ws1abc12
ws1abc12

View 6 Replies


ADVERTISEMENT

Extracting Letters And Numbers In A Random Alphanumeric String

Dec 29, 2009

I've got this problem: I need to separate around 40 alphanumerical entry in Column'A' to Columns'B','C','D','E'..

View 6 Replies View Related

How To Sort Numbers With Letter Prefixes And Letters Mixed With Numbers

Jan 21, 2012

Using the following data

R10-12128
R11-12x12x8
R11-12x12x8
R1-12x12x8
R1-12x12x8
R12-12x12x8
R14-12x12x8
R16-12x12x8
R18-12x12x8
R2-12x12x8

I want it to sort like this:

R1-12x12x8
R1-12x12x8
R2-12x12x8
R10-12128
R11-12x12x8
R11-12x12x8
R12-12x12x8
R14-12x12x8
R16-12x12x8
R18-12x12x8

What is the formula to achieve this?

View 5 Replies View Related

To Sort A Column With Mixed Letters And Numbers

Aug 12, 2007

I am attempting to sort a column with mixed letters and numbers. However, I have been totally unable to get them to sort the way I want them.

What I have is:

K600
K2
K2A
K2B
K159
K159A
K159B
K1
K1A
K1B
K428
K8
K8A
K8B

etc, etc. The prefix letter is only a K - no other letters. However, the suffix letters can be anything from A to E (at the present time)

I need to sort them numberically from K1 in descending order ie:

K1
K1A
K1B
K2
K3
K4
K4A
K4B
etc etc etc

View 9 Replies View Related

Removing Two Letters From A String Of Letters And Numbers

Jul 29, 2014

i have a list of 2000 fields which have the same format IE "AB10014"

I need to remove the "AB" from every field and leave the #.

Besides putting a space and running text to columns I'm not sure how.

View 13 Replies View Related

Extracting Numbers With Letters

Aug 21, 2014

In column A I have the following numbers

13710
14782H
9827
14782
14206B

a formula that looks at this range of cells and returns only the cells that have a letter at the end. The letter range goes A to M

View 6 Replies View Related

Dividing Letters And Numbers String

Jan 25, 2009

A given string of some letters (from three to five, six) is followed by a single number (1-4). Then it ends, or is followed by another such combination, up to a maximum of, let's say, four.

Example:
xxxx1
yyy3yyyy1
xyzxx1yxz4xzx1
xxx2xxx2xxx2xxx2

What I would like to do is to divide a given chain of characters into the smallest chains which contain only letters and one number. To the examples given above, I'd like to receive the following sets:

xxxx1
yyy3 and yyyy1
xyzxx1 and yxz4 and xzx1
... and so on

Is it somehow possible to do it with simple functions? Or is VB necessary (which sadly I don't know)?

View 6 Replies View Related

Remove Numbers - Leave Letters In A String?

Mar 18, 2014

I would like to take the below strings and remove any numbers and just leave letters. Or extract the payee from the string. If at all possible, I'd prefer this in a formula.

Card Purchase WAL Wal-Mart Sup 320004 0532 WAL-SAMS CENTRAL LA
Card Purchase WAL-MART #0532 053201 308 N AIRLINE HWY CENTRAL LA
Card Purchase LEBLANC'S FOOD S 874301 209 S. AIRLINE HWY CENTRAL LA[code]....

Basically, (the first line above) I'd like to remove the words "Card Purchase" and any numbers...or preferably just leave "Wal-Mart Sup" instead of the full string. I'd like the product of the first line to match the product of the 2nd line.

View 14 Replies View Related

Separate String Of Text Containing Letters And Numbers

Apr 22, 2014

I am in need of a formula that will separate a string of text. Specifically, I want to pull out the number values (including cents) from the rest of the text. This is how the text reads:

10.00 OVERDRAFT PROTECTION TRANSFER FEE
10.00

56.00 ELECTRONIC/ACH DEBIT
56.00

199.00 ELECTRONIC/ACH DEBIT
199.00

2,017.64 ELECTRONIC/ACH DEBIT
2,017.64

The data to the left is the data I am working with and the I want the results to read similar to the results on the right.

View 8 Replies View Related

Wrong Letters Or Numbers In A Text String

Dec 1, 2006

So for a program I am writing, the user inputs a text string of 200+ alphabetic letters. Only 20 of the 26 alphabet can be in this input (excluding BJOUXZ). What I need to have a macro or function do is check to make sure none of these 6 alphabet letters are present in the string, and also check to make sure no numbers are present either.

Also, I would love for the input text to be converted to Uppercase for all letter as it does this check.

View 9 Replies View Related

Extracting Numbers A From String

Aug 25, 2009

I would like to extract the digits below in red. The variables are the digits in all of the sections vary from a minimum of one digit to the maximum of three digits.

111.222.333.444

View 2 Replies View Related

Extracting Certain Numbers From String

Feb 6, 2009

I have not managed to find exactly what I am looking for so far..

I have cells with a mix of numbers and strings and I would like to extract certain numbers only.

I.E.
123a bcd8
acbd 1234e

I would like to only extract the first instance of numbers - so in example 1 - 123 and in example 2 - 1234. I have found various methods of extracting all numbers such as:

Function ExtractNums(r As String) As String
'Creates and returns a reference for a regular expression object
With CreateObject("vbscript.regexp")
'Sets the pattern to be non-digits
.Pattern = "D"
'We want to find all matching non-digits
.Global = True
'Replace all non-digits with an empty string and return this value for the function
ExtractNums = .Replace(r, "")
End With
End Function

View 9 Replies View Related

Extracting Both Numbers And Text From A String

Jun 21, 2007

I have a woorkbook where I have a cell that has the following apperance:

12345678-ABCDEFG

The numbers can vary in length and as well as the text. What I am trying to do is to split this cell into to columns. Column 1 shows the account number, Column 2 should show the Text and the "-" sign should not be in any of the columns ie it should look something like this

Column1 Column2
12345678 ABCDEFG

I have found a useful function for the first part thanx to Mikerickson
URL:Extract Numerical Data

Function midNumber(inputStr As String) As Double
Dim i As Long
For i = 1 To Len(inputStr)
midNumber = CDbl(Val(Mid(inputStr, i)))
If midNumber <> 0 Then Exit Function
Next i
End Function

But how do i seperate the text and how do Crete a macro that would loop through some 2000 rows and create a column A and B from Column A?

View 3 Replies View Related

Extracting Multiple Data From Mixed Cell?

Feb 15, 2013

I have data stored in mixed cell that i need to extract to different cells.

Q/K code: AZVR Name: "AzVR" Ltd Nominal: 0.1 USD
R. Number: AZ3570011 Category: ABC

So i need each of AZVR, "AZVR" Ltd, 0.1, AZ3570011 and ABC in different cells. The characters could be in different lengths. Is there any formula that can find Q/K code in text then write characters after it until space or Name starts?

View 2 Replies View Related

Extracting Multiple Data From Mixed Cell?

Feb 15, 2013

I have data stored in mixed cell that i need to extract to different cells.

Q/K code: AZVR Name: "AzVR" Ltd Nominal: 0.1 USD
R. Number: AZ3570011 Category: ABC

So i need each of AZVR, "AZVR" Ltd, 0.1, AZ3570011 and ABC in different cells. The characters could be in different lengths. Is there any formula that can find Q/K code in text then write characters after it until space or Name starts?

View 2 Replies View Related

Separate Letters And Numbers In A String Into Separate Columns

Nov 20, 2012

I receive an extraction from AutoCAD that lists the electrical devices in a drawing. I don't have any problems extracting the letters. I have a problem extracting the device number and the device number extension.

The device label extraction is similar to this:
DCM1005-1
DCM1005-10
DCM1005A
MTR1005-1
MTR1005-10
MTR1005A

I want to create 3 columns from the device label: (I separated the column with commas)
A1, B1, C1, D1
DCM1005-1, DCM, 1005, 1
DCM1005-10, DCM, 1005, 10
DCM1005A, DCM, 1005, A
MTR1005-1, MTR, 1005, 1
MTR1005-10, MTR, 1005, 10
MTR1005A, MTR, 1005, A

View 5 Replies View Related

Compare 2 Columns For Numbers In Mixed Text & Numbers

May 3, 2006

I need to compare two colums by number decription for example m344 in one column and fsh344-1 in another. All I want to match is 344. In column a I want to indcate the match by placing an X by each match. View my attachment for reference. I don't know if it makes a difference but the columns are centered in my original spreadsheet.

View 8 Replies View Related

Extracting Phone Numbers From Text String Variation In Preceding Text

Mar 29, 2013

I'm pulling phone numbers out of text strings. There is text string ("Office:") indicating that the number following is an office number (the number that I need). MID and FIND take care of this. There are sometimes two instances of office numbers in single text string, so adding a second column using the third argument of FIND lets me start another search past the first instance of an office number. We have a bunch of office numbers with the qualifier "(Text)" after the original "Office" but before the phone number. How do I catch these ones?

View 8 Replies View Related

Extract 7-digit Number From A Mixed String

Sep 26, 2009

I am trying to extract a 7-consecutive-digit number from a mixed string (letters and numbers). The only condition is that the number has to start with a "7" or "6" and be exactly 7 consecutive numbers long. My function only evaluates for one and one within the other but not both. It's faulted because it only looks for the occurrance of "6". rCell is the string range.

Function ExtractNumber(rCell As Range)

If Len(Mid(rCell, InStr(1, rCell, "6"))) > 6 Then
ExtractInvoice = Mid(rCell, InStr(1, rCell, "6"), 7)
ElseIf Len(Mid(rCell, InStr(1, rCell, "7"))) > 6 Then
ExtractInvoice = Mid(rCell, InStr(1, rCell, "7"), 7)
End If

End Function

View 9 Replies View Related

Remove Letters From A Column Containing Both Numbers And Letters

Jul 24, 2012

I have a column of cells, some blank, some containing just numbers, some containing just letters, some containing numbers preceded by the the letter 'p'

E.g.

frt
34.2
36

p34.5

In the cells containing the number preceded by the 'p' - i would like to remove the 'p' leaving just the number, with all other cells remaining unchanged.

View 3 Replies View Related

String Extract - Separate First Two Or Three Letters In A String

Sep 4, 2012

I am working with flight numbers and want to split out the letters from the digits. Examples,

BA1234A
BA123
EZY4566H
BE7893B

In column A I need the first two or three letters only,

BA
BA
EZY
BE

In column B I need everything to the right of what appears in column A

1234A
123
4566H
893B
etc.

View 7 Replies View Related

Sorting Mixed Text And Numbers?

Jun 17, 2014

A column holds numbers and numbers with suffixes. The conventional sort function pushes the text values to the bottom. I need them sorted along with the numbers.

Microsoft's KB says to add a column formatted as text and then to RETYPE ALL OF THE VALUES! Splendid. But my file has hundreds of records. Re-typing all of them would be a major pain. On the other hand, if I had started typing while trying to find a way to sort the darn thing I might be done by now.

Here's what I know so far: If we create a column, format it as text and then populate with 1, 2, 3, 4, 1a, 2a, 3a, 4a, etc. it will sort exactly correct (1, 1a, 2, 2a...) after selecting the "sort numbers and numbers stored as text separately" when the Sort Warning appears. If you try to create the sample I typed here, you need to be careful that the area is formatted as text BEFORE entering the text. You apparently cannot change the format of an existing column of data to Text or if you do it does not have the desired effect when sorting. It might be useful to know if this can be done too. MS suggests not.

View 11 Replies View Related

Move Numbers Out From Mixed To New Column

Oct 20, 2011

Just wanted to do some work onto the form below, move the numbers out from the mixed colum and put in a new colum, then delete all the rows if empty in "style":

The original form is like below;

StyleGarmentFabric1001

BS01Fugitive Backpack600D polyester1002BS05Cool Shuttle600D polyester1003BS07Cool Runner Backpack600D polyester1014BS13Xtreme Sports Bag600D polyester2018BS21Stealth Backpack600D polyester3008BS28Gear Sports Bag600D polyester3102BS40Recon Sports Bag600D polyester

What i need is like below:

Code

Style
Garment
Fabric

1001BS01Fugitive Backpack600D polyester1002BS05Cool Shuttle600D polyester1003BS07Cool Runner Backpack600D polyester1014BS13Xtreme Sports Bag600D polyester2018BS21Stealth Backpack600D polyester3008BS28Gear Sports Bag600D polyester3102BS40

Recon Sports Bag600D polyester... ...... ...

step by step:

stpe 1: move numbers out to a new "Code" colum;
step 2: delete the row if empty in "Style"

View 4 Replies View Related

Extracting Consecutive Letters From Cell And Applying IF Function

Mar 8, 2013

I'm working on an email database and am looking to sort them into type. I am trying (without success) to use the IF function as follows.

If A1 contains the letters "isd" consecutively, then B1=TRUE

If A1 contains the letters "google", "yahoo", "hotmail", or "austin.rr" consecutively, then B2=true

View 4 Replies View Related

Sorting Mixed Content - Numbers And Words

Mar 28, 2014

I have a worksheet with a row of mixed cells near the top. By "mixed", I mean some cells have only numeric data (numeric-cells) and some have only words (word-cells).

GOAL: I want to sort the columns to the following order:

First all the columns with only numeric-cells in the mixed row, with those columns sorted in DESCENDING numeric order of the numeric-cells in the mixed row; followed by the columns with only word-cells in the mixed row sorted by ASCENDING alphabetic order.

So far all I have been able to accomplish is:

First all the columns with only numeric-cells in the mixed row, with those columns sorted in ASCENDING numeric order of the numeric-cells in the mixed row; followed by the columns with only word-cells in the mixed row sorted by ASCENDING alphabetic order. This was accomplished by a simple sort using ASCENDING order on the mixed row.

OR

First all the columns with only word-cells in the mixed row, with those columns sorted in DESCENDING alphabetic order of the word-cells in the mixed row; followed by the columns with only numeric-cells in the mixed row sorted by DESCENDING numeric order. This was accomplished by a simple sort using DESCENDING order on the mixed row.

This may sound as confusing to you as it does to me, so I have attached an example file showing hypothetical Input Data and the Desired Result.

I did the example file in multiple steps, but that's too painful in the general case where calculations determine what is in which cell in the mixed row. All data are calculated, even the word-cell data AND so dependent on other data, and the columns in the mixed row that are word-cells and those that are numeric cells don't remain the same.

Eventually I'd like to do this with a macro, so if VBA has some power to do this that EXCEL commands don't, then that's fine.

I could probably live with the final result as numeric-cell columns sorted in DESCENDING order followed by word-cell columns sorted in DESCENDING order, but I haven't even been able to accomplish that AND it's not quite the goal.

View 3 Replies View Related

Average Numbers In Table Containing Numbers And Letters?

Jan 27, 2012

I have a spreadsheet wtih a number of rows that contain answers to different criertia in each column.

The row may therefore have cells that either have numbers or letters.

Column A will be the title of the row.

I want to write a function to find the average value of the numbers in any row with title 'x'.

So it would look down column A, and look for those called 'x', and then average all the numbers across all those rows.

I have tried to use =averageif, but I think the fact there are letters in the cells being assessed (which I just want to be ignored) creates an error.

View 9 Replies View Related

Change Letters Within String

Apr 10, 2014

I am looking for a while for a macro or a function, which should change needed letters in string into needed ones.

Example:
A1 cell contains words "John Johnson Martinson". I want to switch "n" letter into my specified, lets say "m" and the result should be "Johm Johmson Martimsom".

I would like to get it within range of columnA. Is it possible to get?

View 3 Replies View Related

Extracting Numbers From Text And Turning The Numbers Into Rows Of Data

Feb 23, 2010

The format of the text in which I need to extract numbers is as follows:

23411268 - 23411270

Need to extract the following:

23411268
23411269
23411270

These numbers have to be listed in three seperate rows.

View 14 Replies View Related

Extracting Numbers From Alphanumeric Strings (unite The X Amount Of Numbers)

Aug 16, 2008

Is there a way either by VBA or manually (preferably both, if possible) to actually unite the X amount of numbers that are in a cell given the contents is alphanumeric? I'll give you the following examples to see if you can understand what I' referring to?

DATA output should be
asd67,h876 --------> 67876
2,3,ujdj5&34 -------> 23534
909k86m34 --------> 9098634

View 14 Replies View Related

Converting A String Of Letters In A Row Into Columns

Oct 5, 2009

I have a set of letters in a single row DISATAGFOORCBORDQFINFCOBBKIEHDSMCNRSKARDFCJSLCQCECFVSBCBOYKPVYKC. I want to distibute them across 5 columns such that each letter occupies one cell. I might want to specify a different column width later on so the solution should be flexible.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved