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
ADVERTISEMENT
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
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
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
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
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
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
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
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
View Related
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
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
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
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
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
Apr 28, 2011
I need a VBA that will look through a spreadsheet in a specific range and clear any cell values of 0. The range would be Columns E,F,G,H,I,J,K,L all the way up to row 4000.
View 6 Replies
View Related
Aug 13, 2008
I am trying to find the solution for the problem I faced after downloading the "Color Filter" utility from this forum (Handle Duplicates & Color Filter)
I really do not understand why I was banned. I've downloaded utility from THIS forum and have kindly asked help on how to remove it because it does not meet my needs. I am not an expert in VBA and expected that somebody could help me. (It looks like the person providing the utility in the above indicated post shared the password as everybody is thanking him but I don't see where it is!)
I just want to remove the utility from my PC!!! And, if I can do this without bloody password than I do not want it! But, can somebody just explain me if there is another way to remove this from my PC or I have to reinstall EXCEL ?
I must say that I find it really increadible for beeing banned twice for no reason. Isn't it worse to place the password protected utility so that the one dowloading it cannot remove it anymore?
View 5 Replies
View Related
Apr 9, 2014
I attached a file in which column A is dr_cr and E id INST_NO and column G is INST_AMT. This file like a bank statement. in which one instrument(cheque) present and i denote it c(credit) in column A. but if cheque credit then d(debit) means that this cheque present and dishonour. but some time one cheque credit and then debit and then credit. it means that we have to remove previous credit and debit entries. in this attached file you found this type of entries. i want to remove this type of entries. i further explain.
1. if one instrument have one credit and one debit its ok.
2. if one instrument two credit and one debit then remove one credit and one debit where instrument no and amount and drawee bank must be same.
3. if one instrument have two credit and two debit we have two remove one one debit and one credit.
4. if one instrument have three credit and two debit then we have to remove two credit and two debit so one credit left.
Attached File : remove duplicate.xlsx‎
View 2 Replies
View Related
May 27, 2008
Is there a way to setup a spreadsheet so data that has been entered cannot ne deleted or edited, and only the last field in the column can be accessible? So if I have info entered in a1, a2, a3, b1, b2, b3, no one can edit or delete them, and can only add to a4 and b4? Will I need to write a macro for this or is it something I can do with certain settings?
View 9 Replies
View Related
Nov 6, 2008
An apostrophe has appeared at the beginning of the words and/or numbers in the cells. I have tried using the "Replace" feature to remove these apostrophes and it won't work. I need to remove the apostrophes so I can upload our inventory, as the SKU must be pulled exactly.
View 3 Replies
View Related
Jan 10, 2009
There are 2 sheets in the file attached.
-Data : Contain all the acc number and balance.
-Working : a sheet for my working to derive what I want . A string contain all the Acc Number
Bascially first I will paste and copy the acc number and balance from an external source to Data, then I wan to create a string of all the acc. This is done by the working from my Working Sheet.
In my Working Sheet, first It will take the value from the Data Sheet. Since the number of Acc / Balance may differ, I wan to know how to remove the 0 and #Num! for those null values.
Following that, I create a column sorting the all number from smallest to biggest, following by next column forming up the string. I do not want the same Acc to repeat in the string.
View 3 Replies
View Related
Jan 16, 2009
I have hundreds of formula which are linked to multiple spreadsheets. They all have $ signs in which I would like to remove. Is there a quicker way than editing each formula?
View 5 Replies
View Related
Jan 29, 2009
I done running a macro but I want to convert back before the macro is run. How can I do it?
View 6 Replies
View Related
Feb 26, 2009
I have a cel that has about 100,000 phone numbers and at the end of some and before sum, there are spaces added to end. is there a formula, or a way to take everything away except for the 10 digit number?
View 5 Replies
View Related
May 21, 2009
I am looking to remove the daily expenses summary sheet and continue to use the expenses detail sheet, but on the main weekly business sheet where you enter the financials, I need the expenses line to contain expenses for each day.
It is my intention to simply enter monday in the day colum in the expenses detail sheet and in the weekly business sheet it would pick this up.
So the formula I had was =ifsum(!expenses detail a2:a40, !expenses detail monday, e2:e4) This formula is giving me a name error.
Am I using the wrong formula. Basically I want this type of formula so under the expenses row for mon-sun it will add this up.
View 9 Replies
View Related
May 22, 2009
I've been sent a document by a client which has come with an add-in which has automatically installed itself into the Ribbon. It's on the Add-In tab (obviously!) and the Command Group is named 'Custom Toolbars'. What's annoying is once I close the document, the Add-In stays there and I have a redundant tab with an irrelevant Command Group .
Now, I've done a bit of searching and how found a number of websites that give instructions on add-ins. However, the add-in that has come with the client's document isn't on the list and hence I can't remove it. I need to do to get rid of this? I've contacted the client, but they're suspiciously quiet about the whole thing.
View 4 Replies
View Related
Jun 4, 2009
I added a combo box to a worksheet and closed and saved it. But I don't want it amymore. I cannot delete it. I try right clicking it but nothing. The worksheet,(workbook) isn't protected.
View 2 Replies
View Related
Sep 20, 2009
I need a formula that can remove all characters to the right of "]" for example, if a1 = abcdefg]1234, I want b1 to return the value: 1234. I tried =RIGHT(a1,FIND("]",a1)-1), but that didn't really work. It returned: fg]1234
View 4 Replies
View Related
Dec 18, 2012
I can't remove the apostrophe mark from the cells. There are cells appearing to be blank but they all contain a single apostroph (like this ' ) if I click on them. Whenever I tried to replace them excel said cannot find a match...
View 3 Replies
View Related
Sep 4, 2013
Is there a quick command that I can use to take
math
math
math
math
art
art
art
art
art
music
music
music
music
into
math
art
music
View 6 Replies
View Related
Sep 25, 2013
I have an excel document that looks like this: Capture.JPG
I need it to look like this: Capture2.JPG
As you can see, the batch #, document #, amount, debit and credit all duplicate based on the number of debits that appear for each document #.
View 3 Replies
View Related