Format Cells With Dashes Between Alphanumerics

Nov 15, 2006

I'm trying to find a way to have excel 2003 format the data I put in a cell to auto insert dashes every five characters. I'm entering product keys for the software we have on hand, and it would be a little quicker if I could simply have excel auto format the data entered in to include dashes every five characters.

Example:
- I would enter: D5ATT3D28F6F44536489413E2 (This is a fake, non-working product key, I just typed in random numbers a letters.)

-Excel would format it like: D5ATT-3D28F-6F445-36489-413E2

View 9 Replies


ADVERTISEMENT

Custom Number Format - Automatically Enter Dashes At Appropriate Spot

May 7, 2014

I am needing a custom format for the following. I need a cell entry to be 1 letter, three numbers, a dash, 5 numbers, a dash, two numbers, a dash, and then two number. Example: A109-54785-13-00. The first letter will almost always be an "A."

To further complicate the matter, the entry is copied from an email and pasted without the dashes. In the above example, the number in the email would read, "A109547851300." I copy it from the email and paste it in the proper cell in the worksheet. I would like the custom format to automatically enter the dashes at the appropriate spot.

If it was all numbers, this would be easy. I created a custom format for the numbers, but when the A is included, Excel no longer treats it as a number and the custom format did not work.

Is this possible in Excel (without VBA).

I could use the custom number format I created and then later go back and add the "A" at the beginning, but that is as much work as manually adding the dashes.

View 2 Replies View Related

Counting Cells In A Row With Alphanumerics

Jan 31, 2008

I would like to count the number of cells that contain a word. My table looks as follows:

BDL1,500BDL3,135BDL2,1004.31,400254,6001.41144

In Column 1 (left column) I have 3 cells that contain the alphanumeric value "BDL". This would yield a non-numeric count of "3". Column 2 would yield a count of "0". I hope I'm being clear. Anyone hav an idea?

View 8 Replies View Related

Return Cells That Have Exactly 3 Dashes

May 27, 2009

I have a column of data (column A) with cells that have IDs (alpha-numeric) that contain anywhere between 0 to 5 dashes. Since this column will change weekly, I want to dynamically pull only those cells that contain 3 dashes.

Example:
10648145-3026718-t526363536m
09wcg7-s1s89-wtpxm33-uu6jj0-9y8mv-v1
10658575-2349769-

I would only want to have returned 10648145-3026718-t526363536m since it contains 3 dashes. Do you know of a nifty formula for doing this? I think an array would get me the dynamic piece (so they are not spaced out).

View 3 Replies View Related

Custom Format Which Displayed "-"(Dashes Without Quotes) Insted Of "0"

Aug 30, 2009

i have a table in which some value is Equal to 0. Now i want a custom format which Displayed "-"(Dashes without quotes) insted of "0" (without quotes)

View 4 Replies View Related

Pattern Matching With Alphanumerics

Oct 2, 2008

I am a beginner to VBA and Macros, and I have a fairly complicated macro that I am pressed to make.

I am working with alphanumeric data that is unorganized. Here is an example of what it looks like: ...

View 7 Replies View Related

Convert Alphanumerics To Metric

Apr 8, 2009

I have a spreadsheet,section attached.

In column a is the distance in miles and furlongs and yards..sometimes there is only miles..sometimes only miles and furlongs,,sometimes only miles and yards..

I need a formula i can fill down in column b to convert to furlongs in decimal format
e.g. 2miles 3 furlongs and 20 yards converts to 19.09 furlongs..

there are 8 furlongs in a mile and 220 yards in a furlong...

View 9 Replies View Related

Extract Alphanumerics From String

Jul 26, 2007

I have many strings of arbitrarily length. Each string always
has one number (0-9) component and one alpha-character (A-Z) component.

The order of the components in the string is entirely random.

Sometimes numbers come first and sometimes letters/characters.

Also, the length of each separate component is also varies and
there is no fixed rule to how long it will be each time.

Examples are:

String: RGH45 Alpha: RGH Num: 45
String: 4589THF Alpha:THF Num: 4589
String: FGGFFF56464645464 Alpha:FGGFFF Num: 56464645464
String: sdgdfgdfg874645 Alpha:sdgdfgdfg Num: 874645
String: 54sfsdfdsf Alpha:sfsdfdsf Num: 54
String: s54654646 Alpha:s Num: 54654646

etc..

I want to have two strings. One called Alpha and One called Num
I want to have the alpha-character component to be extracted from the string
and set to Alpha and the numerical component to be extracted & set to Num.

How/what is the Excel Macro VB code to accomplish this from within the macro?

View 9 Replies View Related

Lookup Exact Alphanumerics

Dec 16, 2007

I am try to convert a letternumber (both single) to a number, ie 3b to 5, 7a to 17 etc. I am using a vlookup formula at the moment, =VLOOKUP(J3,'Test levels'!$R$4:$S$54,2) but if J3 is 4b it finds 3b and puts in that reference.

View 3 Replies View Related

Pull Left X Characters From AlphaNumerics

Dec 1, 2007

I want to take a lot of text fields with alphanumeric characters ie. " '49560-960-A908 "
(always beginning with the character " ' ") and display in another cell position 2 thur 6 ie. "49560"

I have a file that contains 3,500 cells with alphanumeric characters...always beginning with ' but I need the 1st 5 numbers after the ' in a second separate column

View 3 Replies View Related

Increment Number & Text Of Alphanumerics

Feb 28, 2008

I was recently issued an alphanumeric range that I would like excel to manage for me. The alphanumeric numbers contain 5 characters. The basic pattern starts zero to nine, then A-Z, then 10. For example, A0500 through A0509, A050A-A050Z, A0510-9, A051A-A051Z, A0520-A0529, etc.

View 4 Replies View Related

Maximum Of Text & Numbers - Alphanumerics

Jul 31, 2008

Is there a vba function that can determine that "1B" is > then "1A"? Max only works with numbers apparently, but I know that MS Access' version of Max does this.

View 2 Replies View Related

Remove All The Dashes

Jun 14, 2006

Have a column containing data which may have 1-3 dashes locates within
each cell value.
Such as:
125-457A
158-857-1116
124184A-1
125-8745-22D9
458-2145-002-7

Would like to remove all the dashes "unless" the last dash to the right
is followed by a just a single digit. The results would be as follows:

125457A
1588571116
124184A-1
125874522D9
4582145002-7

On the example data, it kept 2 of the dashes in the cell values,
because the were only one digit away from the extreme right, but
removed all others.

View 9 Replies View Related

Want To Add Dashes To Cell Text...

May 11, 2009

I have a column of city names, some are one word and others are two or more. I am trying to take the city name and add it to another word, add dashes in between them and make everything lower case. For example:

Column 1, Cell 1 is: San Diego

I'd like it to look like: books-san-diego (books being the keyword I'd like to insert before the city.)

View 3 Replies View Related

Look Up On Cell But Based On Value Between Dashes

Jul 6, 2007

Here is the examples of values i have

TCH1 - John Smith - I - REG - Total
AV - John Doe - D - REG - Total

what i want to do is lookup on the value after the first dash and before the second dash to get the names only ; John smith, john doe

View 9 Replies View Related

Remove Dashes In Number Automatically

Jan 13, 2008

I have a column of 1000 folio numbers and need a formula that will remove the dashes like so,

35-30-19-041-0180 into
3530190410180

View 4 Replies View Related

Date Entry Without Typing Dashes?

Feb 28, 2006

I want to type "121505" in a cell and it display 12-15-05. What formatting do I use?

View 4 Replies View Related

Removing Dashes Deletes Everything After First Dash

Mar 25, 2013

I have entries that look like this - 300-7188258-1

300-8983980-5

I need to remove the dashes. I find and replace all - with nothing. that has worked for YEARS. Seems simple to me.

Today, when I do it, Excel leaves the "300" and removes everything else. I even did a CLEAN function and it still does it.

View 3 Replies View Related

How Do I Get The Dashes To Not Count As A Digit/number?

Sep 12, 2007

I have this script that does what i need it to do but one thing, I need the script to count the numbers as digits only and not the dashes in the format.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count 1 Then Exit Sub
If Intersect(Target, Range("I21:I24")) Is Nothing Then Exit Sub
Application.ScreenUpdating = False
Application.EnableEvents = False
If (Len(Target) > 11) Or (Len(Target) < 10) Then
MsgBox "Not a valid number of characters, please try again"
Target.Value = vbNullString...................

View 11 Replies View Related

How To Remove Specific Dashes Within Cell Leaving Others

Jul 28, 2014

I have a series of columns that have dashes in them and want to remove just specific dashes from the cell

Example of original 70489-344-15-001

This is what I want --> 70489-34415001

Got about 1000 of them ...

View 2 Replies View Related

Hyperlink Code For Sheet Names With Spaces Or Dashes

Sep 7, 2007

I believe I have 99% of what I need. The code below has one bug. (See just the underlined text for a very quick overview. The rest is detail.)

My goal is to generate a TOC that:
1) has the VBA run from my Personal Workbook.
2) can be run in any worksheet of any open workbook.
3) can be run in a worksheet of any name.
4) will insert itself at the currently active cell.
5) has entries hyperlinking to the referenced worksheets - of any name.

Right now, I'm stuck with the last point. The macro below will generate the TOC at the currently active cell. The TOC will be hyperlinks to the referenced worksheets.

However, if the referenced worksheet contains a space, dash, or other special character then the generated hyperlink is broken. For example, if the referenced worksheet is "sheet1" then the hyperlink generated works just fine. However, if the referenced worksheet is "sheet-1" then the generated hyperlink doesn't work.

Sub IndexList()
Dim objSheet As Object
Dim intRow As Integer
Dim strCol As Integer

Set objSheet = Excel.Sheets
intRow = ActiveCell.Row 'Start writing in active row
strCol = ActiveCell.Column 'Start writing in active column

For Each objSheet In ActiveWorkbook.Sheets
Cells(intRow, strCol).Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
objSheet.Name & "!A1", TextToDisplay:=objSheet.Name
intRow = intRow + 1
Next
End Sub

View 7 Replies View Related

Convert Cells With Percentage Format To 'same' Decimal In A Column With Mixed Format

Jun 7, 2006

I have a column of cells with values - 0.2%, 0.32%, 0.22, 0.5 etc. The cells with % symbol are in ' Percentage, 2 decimal' format while the plain numbers are in 'General' format i.e. column contains cells in either of these formats. I need a macro where I can specify the column and it will select the cells with the % format, convert it to 'General' and multiply the result by 100 eg. 0.2% converted to 'General' becomes 0.002. When multiplied by 100, result is 0.2 i.e. is displayed without the % symbol.

View 7 Replies View Related

Time Format: Format Cells To Contain Minutes, Seconds And Hundredths

Oct 15, 2009

How can I format cells to contain Minutes, Seconds and Hundredths of seconds to be used in calculations eg 1.24.99 means 1 minute and 24.99 seconds. Example calculation is: 1.24.99 - 1.24.90 =0.0.09

View 2 Replies View Related

Remove Non-alpha Characters From Alphanumerics With Option To Remove Numbers

Aug 8, 2009

I have found a very useful UDF for removing non-alpha characters from strings. (See below, Credit for posting to Stanley D Grom - Ozgrid post ´Removing Non-alpha Characters From Text´).

Option Explicit

Private Function RemoveCharacters(InString As String) As String
Dim intLoopCounter As Integer
Dim intStringLength As Integer
Dim intASCIIVal As Integer
intStringLength = Len(InString)
InString = LCase(InString)
For intLoopCounter = 1 To intStringLength
intASCIIVal = Asc(Mid(InString, intLoopCounter, 1))
If intASCIIVal >= 97 And intASCIIVal <= 122 Then
RemoveCharacters = RemoveCharacters + Mid(InString, intLoopCounter, 1)
End If
Next intLoopCounter
End Function

Two requests:

1. Could the UDF be modified such that any part of a string contained within brackets is also removed (e.g. "NLGA High Street (West-Enfield), EN6" becomes "nlgahighstreeten")?

2. Can an argument be added to the format of the UDF, such that numbers (0 to 9) are either included or excluded (e.g. RemoveCharacters(A1,1) where the argument ´1´ would include any numbers (0 to 9), so "NLGA2003 High Street (West-Enfield), EN6" becomes "nlga2003highstreeten6")? ´blank´or ´0´would exclude these numbers, i.e. would return "nlgahighstreeten"

View 5 Replies View Related

Format Cells To Change Name Format

Dec 6, 2013

Is it possible to change the contents of a cell (A1) displaying a name as:

John Smith

to Smith, John (in cell B1)

View 3 Replies View Related

Excel 2003 :: Conditional Format Top / Mid / Bottom 33% Of Cells But Ignoring Blank Cells

Mar 25, 2012

I am trying to conditionally format the top middle and bottom thirds of a range of data. Problem is, that the range needs to be flexible as sometimes there may be a maximum of 36 cells with data, but sometimes there may be less (so there are blank cells in the range that need not be counted). The methods I have tried always include the blank cells, and so it is not equally formatting the thirds (as it includes the blanks cells as part of the bottom data)....

Here are the 2 methods Ive tried so far using excel 2003)
Top 34%:
=IF(INT(COUNT($D$3:$D$38)*34%)>0,LARGE($D$3:$D$38,INT(COUNT($D$3:$D
$38)*34%)),MAX( $D$3:$D$38))0,LARGE($D$3:$D$38,INT(COUNT($D$3:$D
$38)*67%)),MAX( $D$3:$D$38))0,LARGE($D$3:$D$38,INT(COUNT($D$3:$D
$38)*100%)),MAX( $D$3:$D$38))

View 4 Replies View Related

Conditional Format Cells Containing Numbers And Letters - Ignore Cells With Number Only

Jul 11, 2014

I have a column of numbers and want to make sure everything has been entered correctly from our scanning software. Basically, I want to automatically highlight any cell that has any letter in it (e.g. z12o2 instead of 21202 or R705 instead of 5705), ignoring any cells that contain only numbers. I haven't had any luck using conditions based on formulas like =ISTEXT.

View 2 Replies View Related

Format Cells Based Upon Being Outside Scope Of Calculation Of 2 Cells

Feb 6, 2008

I am comparing a set of common variables across 2 sets of independent financial data. When comparing a variable across the 2 sets e.g. profit I want to colour a neighbouring cell based on the size of the difference. For example if the difference between the two values is within plus or minus 1 make it green, plus or minus 5 red etc.

View 5 Replies View Related

Format Setting Is The Same In All The Cells But Only Certain Rows/cells'

Jul 11, 2007

my excel setting... I'm not able to see some of the numbers (in currency/accounting) in excel file, it shows as many "#" sign, and it's not due to the column width. The same file can be seen in other computer.

The format setting is the same in all the cells but only certain rows/cells' numbers appear like "normal".

View 9 Replies View Related

Keep Format In Cells?

Jul 31, 2012


I have file 1 and file 2.

In file 1 I have clicked:

Format cells > Text and
Data Validation > Text lenght = 5

Problem is when I copy from file 2 to file 1 i lose this above mentioned format.

View 1 Replies View Related







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