Formula To Shorten An Alphanumeric Line Of Text

Jan 25, 2010

I'm using the formula '=LEFT(A2,4)+0 to shorten a numbered line of text.Is there a way to adopt that formula to do the same thing to an alphanumeric line of text (i.e. 80A0267AA1 to read 80A0267) or even better substitute a "-" in place of the "A" (i.e. 80A0267AA1 to read 80-0267)? I know this is really picky, but I figure it's worth a shot.

View 10 Replies


ADVERTISEMENT

Extract TEXT From Mid Of Alphanumeric String Using Formula

Jul 18, 2012

I have another question regarding extracting Alphabet from the alpha Numeric String:

Column A

POT470G12B
PBY100G12
PCLN6400S12
PCX.US10X12
AAPL6000G12A

BP380S12A
BP390S12

The output i want from the string is :

Column A
Column B

POT470G12B
G

PBY100G12
G

[Code] ........

View 9 Replies View Related

To Shorten An If Formula

Jul 28, 2008

My formula is:

=IF(E4="Break",D4,IF(H4="Break",G4,IF(K4="Break",J4,IF(N4="Break",M4,IF(Q4="Break",P4,0)))))

My problem is that excel only lets me use 7 IF functions and I need a total of 12. So I need a different way to perform that same function.

View 13 Replies View Related

Highlight Last Line Of Text And Copy To Line Below?

Mar 14, 2014

I have a spreadsheet where on a weekly basis data is copied in to various tabs. I then have a "formula" tab where I have a single line of formulas which look up the various data tabs and extract the results I want to show.

Currently each week, before I import the new data into the various tabs, I copy the last row in the "formula" tab and paste to the line below it. This contains all the working formulas. I then paste values only on the line that I copied, thus "locking in" the values it calculated with that weeks data. This means that each row then contains the results with that week's data, and this will grow week by week.

What I am looking for is a formula that automates this process. So let's say that row 30 is the final row of data on my formula tab, it contains the formulas I want to use. I would need a macros that does the following:

1. Looks up last row (row 30)
2. Copies last row (row 30)
3. Pastes to next empty row (row 31)
4. Pastes values only to second last row (row 30)

I'm not too great with writing macros, I've found plenty that can find the last row, but I can't get them to work to highlight that row.

View 5 Replies View Related

Inserting New Line With ONLY Formula From The Line Above - Basic VBA / Macro

Apr 30, 2013

I have a worksheet that I need to be able to easily copy and paste the formula/formatting from the row above, but not the Values entered, (if any). I am using columns A to DG.

I just really need to be able to copy all the formula in these cells down - nothing exciting or fancy.

I've tried formatting as a table as per some searches and that was difficult! My column headings changed, and when I inserted a row, two of the formula's wouldn't copy down - plus the shading and borders went wonky in places.

View 2 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

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

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

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

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

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

Extract Numbers From Alphanumeric Text

Feb 19, 2008

I'm looking for a way to extract numbers from a string.

The string can potentially have as few as one number or as many as 25. Each number is separated by a comma.

Here is the code that creates the string: ...

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

Separate Text From Alphanumeric Content From A Cell

Jun 5, 2014

example, if cell A1 contains: 13 Salisbury Street Balwyn, I would want Salisbury Street Balwyn to be put in cell B1.

View 10 Replies View Related

VLookup And Update New Value In Delimited Text Having Alphanumeric

Dec 22, 2013

We want to insert new row by finding existing value of sheet1 and create new row with same content by replacing column B of sheet 2

Example1 : Sheet1 of Column A1 is having AHOPL5070B

Solution required : find AHOPL5070B from sheet2 of column B and update with inserting row with AHOPC5070B

Example for above:

429^TD^1^45055^1^D^11757^31032005^^AHOPL5070B
430^TD^1^45055^1^D^11757^31032005^^AHOPC5070B

MSN-TESTERmatchrow.xlsx

View 3 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

Increment Numeric Part Of Alphanumeric Text

Aug 16, 2007

I have a cell with a value of, Text 1 and in the next field I want it to display Text 2, then text 3 and so on.

Is there any way of doing this? I guess I am looking for something like a1+1, just a shame it doesn't work.

View 9 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

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 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

If Alphanumeric Text Equals Certain Criteria Count Numbers

Sep 30, 2009

On my spreadsheet I have multiple rows and cells containing alphanumeric text (text is a combination of a person's name and goals scored) i.e. Holland1 appears in row 3 cell P3 then Holland3 appears in row 6 cell O6.

What I would like to be able to do is have a forumla that looks at every row and cell in my range and sum the numbers of the alphnumeric text if the cell contains a certain name i.e Holland.

I had tried to use the array formula =1*MID(A1,MATCH(TRUE,ISNUMBER(1*MID(A1,ROW($1:$26),1)),0),COUNT(1*MID(A1,ROW($1:$26),1))) which I found on the internet but this only works for one cell and doesn't allow for a set criteria to be met.

View 8 Replies View Related

Return 1st Alphabetical Alphanumeric Text From Unsorted Range

Feb 15, 2008

I have a range of cells B2:20 which has text in it. The range is sorted by cells A2:20, and I would like to do this without doing another sort if possible. The data looks like this in column B:

CTR848
AWT101
LMT177
AZG884
BRE112
BCW333
CTQ553

In one single cell (O1), I'd like to have the information:

AWT101

Is this possible to do without using VBA?

View 7 Replies View Related

Subtotal And Countif In One Formula With Alphanumeric Values

May 9, 2014

I have a data set of students results and I have been using countif to pickup similar grades eg, C1, C2 and C3 all as C. However I need to subtotal filter against teachers and the sumproduct won't let me use C* as a wildcard to pick up the three types of C. How I can subtoal countif multiple criteria.

View 3 Replies View Related

Shorten Vba Code

Jun 26, 2007

it counts data in columns 4 to Endxlright and then creates a graph based on the status. I'm sure there is redundant code in there but can't seem to shorten it myself.

Option Explicit
Dim vEndCol, vTotal, nFail, nOth, vRow, vCol, nExc, nSum, n, x
Dim Mth As Integer
Dim Cell As Range
Dim vMth, vstMth, vstart, nOK, xRow, vStatus, wks, Chart

Private Sub Calcs()
Sheets("Report").Activate
'Clear previous data and formats
Range(Cells(2, 2), Cells(51, 30)).ClearContents
Range(Cells(2, 2), Cells(51, 30)).ClearFormats
Sheet1.Activate
'Identify last row of data
Range("IV8").End(xlToLeft).Select
vEndCol = ActiveCell.Column
'variables for all data...................

View 5 Replies View Related

Delete Columns, Increment Alphanumeric Text, Insert Rows & Sort

Feb 18, 2008

I am having to write a vba code for a survey data captured code online.

I am attaching the code and the vba module that is suupose to do

following things

2) dELETES THE LAST 3 COLUMNS

3) Initial 6 letters from each cell (Q0001=) UPTO (Q00011=)

4)Inserts new row at top from Q1 TO Q11

5) Sorts data on Q6 (Faculty/Staff)

Before all this the i need to insert blank cells for questions that have not been answered and shift the cells right (condition 1) ....

View 9 Replies View Related

COUNTIFS Formula Identifies Alphanumeric And Date Criteria

Mar 15, 2013

The attached file Countifs issue.xlsx shows my attempt to construct a "CountIfs" formula that finds the one record out of ten that matches the following criteria:

a) Col A has 10 IDs. 3 of them are between 40 - 49, and another 2 are alphanumeric. This formula SHOULD identify these 5:

=COUNTIFS(A2:A11,">39",A2:A11,"<50",A2:A11,"4AB",A2:A11,"40C")

Doesn't work, It finds the 3 numerics but returns "0" when the two alpha-numerics are added.

b) Col B has a list of dates. 5 of the 10 are this month. This formula SHOULD identify them:

=COUNTIFS(B2:B11,(EOMONTH(NOW(),-1)+1),B2:B11,(EOMONTH(TODAY(),0)))

Doesn't work. It returns a value of "0".

c) Col C shows the Status for each record. 5 are "A" and 5 are "B". The following formula DOES find all the "B"s

=COUNTIF(C2:C11,"B")

But obviously I need the full formula to find the one record out of the ten that meets all the criteria.

in (a) and (b) and enable me to combine all three sections.

View 4 Replies View Related

Shorten Code: Clean This Up?

Mar 30, 2007

I am trying to run the following

ChDir _
"C:Documents and SettingsChrisDesktopRainforestMASTER LABORNew Master Labor"
Workbooks.Open Filename:= _
"C:Documents and SettingsChrisDesktopRainforestMASTER LABORNew Master Labor2 Tuesday.xls" _
, UpdateLinks:=0
Workbooks.Open Filename:= _
"C:Documents and SettingsChrisDesktopRainforestMASTER LABORNew Master Labor3 Wednesday.xls" _
, UpdateLinks:=0
Workbooks.Open Filename:= _
"C:Documents and SettingsChrisDesktopRainforestMASTER LABORNew Master Labor4 Thursday.xls" _
, UpdateLinks:=0
Workbooks.Open Filename:= _
"C:Documents and SettingsChrisDesktopRainforestMASTER LABORNew Master Labor5 Friday.xls" _
, UpdateLinks:=0...................

It worked for a short time but now I am having problems running it. I get an excel error that says excel can't continue. Someone said in a previous post that this could be cleaned up and consolidated. how to clean this up. It took me forever to get this right.

View 6 Replies View Related







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