Pull Number By Position From AlphaNumeric Text

Apr 10, 2008

I am having an issue with formatting a cell to 'general'. I have a macro that runs using a formula (i.e. =MID(A12, 18,5)) to extract certain characters from an external data source. I then use only the values of that formula. There then is another macro that compares that value to another value in another worksheet. The issue I am having is when the macro runs, the code is read as ActiveCell.Offset(0, 3).Value...but instead of returning the value in 'general' format, it returns it with what appears to be text (i.e. "75.50" instead of 75.5). This acts as a mismatch since the quotes appear.

I have attempted several things to correct, but even if I try to format-->general it maintains the quotes. The only way it changes is if I click within the cell...then it turns to general (i.e."75.00" becomes 75.5). I am not sure what is the issue.

View 2 Replies


ADVERTISEMENT

Pull Numbers From Alphanumeric Text

Aug 30, 2007

The title of this thread is the best way I can describe what I wish to accomplish. You see, I have a column of information requests in an Excel spreadsheet, each of which his tagged with an alphanumeric request number, and I wish to sort and/or perform and min/max function on the request identification. However, each ID has a IDR in front of it - for instance, IDR000452 - and the letters make the system read the contents as text. Does anyone know of a formula I can use to create a new cell which contains only the numerical contents of the above example?

View 4 Replies View Related

Search For Number Within Alphanumeric Text?

Oct 2, 2012

I have data on two spread sheets which I am trying to cross reference. On the 1st spread sheet I have a list of product codes e.g. 22886, On the 2nd Spread sheet I have a list of product titles which all include product codes within the text e.g. CHRISTMAS FANCY DRESS COSTUME - SANTA SPARKLE OUTFIT 22886 M

I need to insert a formula into the 1st spread sheet which will tell me if based on the product code it is present in the 2nd spread sheet. I have tried VLOOKUP and I think because I am trying to search for a code within a text string it keeps failing! All cells are general cells but the position of the code within the titles varies.

View 7 Replies View Related

Subtract From Number On Right Of Alphanumeric Text

Oct 15, 2007

We use excel to organize salaries and contracts for my fantasy baseball league. I need an easy way to go through all the teams and subtract one year from each players contract. This is an example of a team.

The contracts are in the columns like this NG-3

I would like to change that to NG-2

View 9 Replies View Related

Increment Number Within Alphanumeric Text

Apr 4, 2008

Is it possible to increment / decrement cells using wild characters? I've found myself needing to increment values at different position, for e.g. :

ABC-###-FR05-AB
ABC-222-FR##-AB
C##445-KJ

where I would want to be incrementing # placeholders. It would help if I can give it a start number, and the increment amount (which can be different than 1).

What about possibly extending it a bit more to include two or more place holders at the same time as follows:

ABC##- FR*** (where # would have its own starting number and increment value, and * would have its own).

View 9 Replies View Related

Convert Decimal Alphanumeric Text To Whole Number

Aug 14, 2007

i wanna convert the decimal number to a round number...like 2.0L to 2L.

View 6 Replies View Related

Return Value Based On Last Number In Alphanumeric Text

Jan 25, 2008

I want to be able to return a text string of either Trainee 1 or Trainee 2, (or default to other text) based on codes that are 4 digits (DD01, KKB1, KKB2, KKC2, GG03, etc, where starting with K and ending with 1 or 2 is the criteria for TR 1 or TR 2 . There are two many KK** items to list them all in an If statement and I can't seem to use a wildcard.

=IF (right(c1,1) = "1", "Trainee 1", B1)

gets me halfway there I think but of course doesn`t pick up Trainee 2 and also returns Trainee 1 when it sees DD01.

View 7 Replies View Related

Finding Position Of Number In Text

Aug 7, 2009

Possible to find the position of the 1st number value inbetween text??

example : GBB_5600_OPP_WNN

View 9 Replies View Related

Match All Text And Closest Number In Alphanumeric String?

Feb 21, 2014

Formula to match all text and closest number in alphanumeric string

View 1 Replies View Related

Pull Out Number From Text

Apr 3, 2012

I have two formula i use to pull out the number from text in a cell (J2), the problem i am having is that it will only pull out numbers up to 99,999 and i now have numbers over a million in some case that i need to report on.

I have two way I have been doing this see below, how can i change them so they will pull the number over a million?

I am sure it easy but i have tried all sort and i can not get it to work...

=LOOKUP(100000,--MID(J2,MIN(FIND({0,1,2,3,4,5,6,7,8,9},J2&"0123456789")),ROW(INDIRECT("1:10"))))

OR

=LOOKUP(99^99,--("0"&MID(J2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},J2&"0123456789")),ROW($1:$10000))))

View 7 Replies View Related

Pull A Value (text) From Another Spreadsheet Corresponding With A Number

Nov 11, 2008

I am trying to pull a value (text) from another spreadsheet corresponding with a number. I can't use vlookup because none of them are in a left column. HEre's an example:

there are 2 columns with names and percentages. I am trying to pull a name that corresponds to a certain percentage.

View 3 Replies View Related

How To Pull Certain Number From Text String

Jul 16, 2012

I'm trying to pull a specific 10 digit number from a text string. The ID # is always 10 digits however sometimes there are dates in the data that need to be excluded as well as other numbers such as "I-9". The 10 digit number will always start with 1 or 8. Is there a macro or Formula to extract this data? Please find the example dataset below.

Edit: I should specify I want the "100118416" number from the first cell example or the "800011320" number from the 10th example.

NDM Abxx, Kexxxxx 100118416 2-29-12.pdf

VPG I9 Aberxxxxx, Dexxx 100113048 1-1-12.pdf

I-9 Abxxx, Rexx 100119966 4-5-12.pdf

NDM I9 Achxxxn, Paxx 100119008 3-15-2012.pdf

VPG I-9 Acxxxxx, Toxx 100112782 01-01-12.pdf

[code].....

View 9 Replies View Related

Pull Left Number From Text

Feb 13, 2008

In a1 i have 100.888 and a2 122.222 and a3 122.555UK,(and so on) in column b i want just want the number and not the uk, i have tried =left(a1,7) which works until a3 then it give me characters 122.555 and not the number/value 122.55. I need it as a value to use the vlookup, how do i do it?

View 3 Replies View Related

Pull Number From Middle Of Text String

Mar 24, 2009

I would like one formula to remove "5206" from this string. I tried a combination of right/left formulas together, but I could not get it to work.

5032.5206.05816.00040501.0000

View 9 Replies View Related

Pull Until . Found: Pull The Number From The Right Until It Hits The Decimal Sign

Jan 7, 2010

I have a column of numbers each have a 0. infront of them (example 0.2346
0.5698). I want to pull the number from the right until it hits the decimal sign. So for the two above the result would be 2346 and 5698

View 2 Replies View Related

Excel 2003 :: Take Specific Text From Cell And Copy It In New One (Text And / Or Words Position Varies)

Jan 17, 2013

I'm having a 6000+ records, (contacts DB) exported in Excel 2003 format from MS Outlook.

Except the "First" and "LastName", all other contact elements are in the field "Notes" (which is the BZ column according to the exported outlook layout) multiplied by 6469 (records in total)

Useful information are included !!!

I'll give an example of a record...

Column: BZ, Row: 543 says --> "2110000000-6989000000, 1TOK_TER:17-11-010(25 DAYS LESS),
KATERINA 25 (MANTAS KALNNNNN_HYPERTENSION)1000-150, W:95_105, , HR THE 16wks_US NEFRON OK,
NT OK_B EPIP OK(GOLF BALL)_KAMPILI ORIAKI(DIAITA)_DOPPLER OK, O+,TEST OK(TOX_), , , , , , "

Now, I want every time to take the part of the text says "TER:something..." (part of which is date, but not every time with the known format dd-mm-yyyy, as you see here is yyy, followed by something else, with parenthesis here and maybe more data) and copy it in a new cell..., e.g:CO Column, same Row...

Above and every field which by the way is formatted as General (and it is text mainly) are made by merging older excel fields where data laid here and there, that's why you see the commas...with the method of a module with the following code:

Function MyMerge(Rng As Range)
For Each Cell In Rng
Temp = Temp & Cell.Value & ", "
Next Cell
Temp = Mid(Temp, 1, Len(Temp) - 2)
MyMerge = Temp
End Function

Note1:Records with the above string (TER:dd-mm-yyy) are 771 from 6469.
Note2: As an alternative solution I can see an extraction of the TER:dd-mm-yyy string and the copy in a new place, like the:CO Column, same Row...

View 9 Replies View Related

Convert Date To Alphanumeric Number

Jan 6, 2014

As the title says I was wanting to convert a date into an alphanumeric number.

After searching around for a long time the closest thread I could find was this one : [URL] ....

I would like to enter the date by dd/mm/yyyy and have it come out to an alphanumeric number.

The alphanumeric number for example would be C21501
Where "C" is the year starting from 2013. So in this case C would be 2015

Next two digits would be the week of that year. So 21 would be in the month of May

The following number would be the day of that week starting from Monday. So in this case 5 would be Friday.

The last two numbers would be the consecutive number for that day. For example two orders could be placed that same day so the first would be C21501 and the next would be C21502.

View 8 Replies View Related

Extract Number From Alphanumeric String ..

Dec 16, 2008

I would like to parse a part number.

ab24s-12-g4a

if there is a "-#-" in the string, that is the value I want. If the "-#-" is not present, I would like to take the first number. Currently, as written in your first example, I am getting the first number - excellent and thank you!

In the sku, the first digit reprepresents capacity. If a second number is present after the capacity portion of the sku (i.e. "-#-"), that means that they want to order it filled with less than capacity. For instance, a carton of eggs and they want 6 eggs instead of the max capacity of 12. (i.e. egg12-6-z2z). Numbers after the second octet (i.e. z2z) do not matter.

It would be a number only in the second octet. If there are characters with it, the equation should disregard it.

Here are the scenarios, and what the formula should accomplish

1) egg12 --> currently returns 12
2) egg12-6 --> would return 6
3) egg12-6-g2c --> would return 6
4) egg12-g2c --> would return 12

View 5 Replies View Related

Extract First Number In Alphanumeric String?

Oct 11, 2011

Have many rows of alphanumeric strings. 2-4 letters followed by a variety of numbers, some spaces, and some additional letters. What I need is to return the first number after the initial 2-4 letters, everything after that first digit is junk. Thus, I would like a formula that takes me from:

AB23400 12 -> 2
CET25800 1 -> 2
NYT67300 H01 -> 6
HSRF49900 1 -> 4

View 9 Replies View Related

Extract Number From Alphanumeric String Located At Different Row

Jan 20, 2008

What is the formula to be used to extract number from a alphanumeric string located at different row?

example:
test123test128test131
test124test129test132
test125test130test133
test126test131test134
test127test132test135
test128test133test136

result: ....

View 11 Replies View Related

Position Of Last Number In Column

May 26, 2009

How to find position of lust number in column (non macro preferably).

2
3
1
3
2
1
3
2
1

For number 1 match will return 3 but I need 9 (and I can't sort column opposite)

View 4 Replies View Related

Get Array Position Number

Jun 15, 2007

if i have an array myarray=array("MA","PA","CA")

is it possible to go down a row and if it said "MA" then return 0 or if it said CA return a 3 the number of the array position

View 9 Replies View Related

Alphanumeric Counter (automatically Populate A Column With An Alphanumeric)

Jun 23, 2009

I need to automatically populate a column with an alphanumeric MFR0001 to MFR9999 and am currently using the formula below to add 1 to the start point (A1)...

A1=MFR0001
Formula in A2 =LEFT(C1,3)&(RIGHT(C1,4)+1)

This works perfectly if I start at MFR1000, but breaks and drops the 000 if I use it on the number I need to start with (MFR0001).

View 3 Replies View Related

Attribute A Number To Each Digit 1 In Position

Jul 7, 2012

I would like to attribute a number to each digits 1 in position.

 IJKLMNOPQRSTUVWXYZAAABACADAEAF1 
12345678910             2                        3            4 0111110010  234569     5 1110010000  1236       6 1010010110  13689      7 

View 5 Replies View Related

Replacing Array For A Position Number

Oct 18, 2012

The list at the left is the data (A1:F1900) in the middle the table (is like a parking lot - place number), and in the right is the swap results, I mean if I put the table in front of the list, and want to know what place number 2 was before, I can see was in the position 7 in the table, next #6 was in 8 and so on, see the example:

Code:

2
6
25
31
37
50

1
2
3
4
5
6

[Code]...

when I go to swap the second line I mean 2-6-11-18-etc. the table has to move one cell down like this.

Code:
2
6
25
31
37
50

[Code]...

and for the next number, the same thing, the tabe go down one place and according from the new position swap the numbers.

The position talbe is on H:M from 1 to 500, I don't write H1:M500 because remember this table go down one row every time, and the results in O:T; well at least I don't find another way to explain.

View 9 Replies View Related

Extract Alphanumeric From Text String

Dec 26, 2013

I have the following text string.

What formula can I use to extract these results on the right?

Sample file.xlsx

View 8 Replies View Related

Extract TEXT From Alphanumeric Cell

Oct 23, 2009

I've got a cell with codes, such as:

21ML,
43GKP,
etc.

I want these to look like :

ML21,
GKP43,

i.e. swap the numbers with the letters but keeping the order of the characters.

View 6 Replies View Related

Stripping Text From AlphaNumeric Strings

Aug 29, 2006

I'm working on an attendance spreadsheet that shows the employee's absence using the format "X####", where X can be one of the following three values: S(for sick time), P(for personal time), and V(for vacation); "####" is the number of hours absent (can be from 0.25 to 8.0,measured in 15-minute increments, # can be either a digit from 0 to 9 or a decimal point, and there can be from 1 to 4 characters, but must be >0(I'm not worried about data validation yet).Examples are P8.0, V.5 (V0.5), S2.75,etc.

The spreadsheet is laid out such that each row represents an employee, and each column is a workday. After the employee's information are three columns labeled P,V, S. I'm trying to generate a formula that when applied to an employee's row, will display a running total of the absent hours based upon personal, vacation, or sick time taken. We'll call the range "CAL"(Short for calender)

To strip out the numeric characters on the right, I use the formula RIGHT(CAL, (LEN(CAL)-1)). To Determine which column the data should be summed in, I use the formula LEFT(CAL,1). Blank Cells are permitted, in fact most of the row will be blank. Now that I've figured out how to strip out the alpha from the numeric, how can I get the totals? I apologize for writing "War and Peace," but I wanted to be as concise as possible-

View 5 Replies View Related

Sort AlphaNumeric Text By Numbers

Dec 6, 2006

Take for example ABC10 in Cell A1, ABC199 in cell A2 and ABC9 in cell A3

How am i able to sort such that ABC9 appears in cell A1 followed by ABC10 in cell A2 and ABC199 in cell A3?

View 9 Replies View Related

Extract Text From Alphanumeric String

Jul 16, 2007

I need to extract just the text from cells which contain both letters and numbers. There can be one or two letters, followed by one, two or three numbers. (For info, these are chemical elements and their masses). So for instance,a cell could contain anything from the following B9, B11, S32, Ca44, Mo100, I129, Th226, U238 etc etc. I know I've seen this done before, but I can't find it now. It also has to be formula based, not using VBA.

View 4 Replies View Related







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