I have to take a range of phone numbers that I have to port from another carrier and manually type them out or copy into another speadsheet, removing duplicate numbers. For example, I have the following numbers:
I have a string of text in cell A2. In cell B2 of my spreadsheet is a formula that calculates a number based on the text string in cell A2.
I want to write a VBA loop that removes a single character from the cell A2 string, then calculate the new value in cell B2. I want this loop to continue until the value in B2 falls below a set value (in this case 60).
My code so far Sub trim_text() Dim mytext As String Dim myanswer As Integer mytext = Range("A2") myanswer = Range("B2") Do While myanswer > 60 mytext = (Right(mytext, Len(mytext) - 1)) Loop End Sub
This obviously does not work. In my excel table I have a formula in cell B2 to calculate "myanswer" will this work, or does that code have to be placed into the VBA code?
Is it possible to scan through column A for duplicates if found delete the row that has not got any data in either column D E or F? If Duplicates are found and neither have any data in D E or F Delete all but one of the duplicates.
I have a spresdsheet with a few tousand rows that is updated daily. My objective is to remove duplicates from colum C keeping always the most recent (date on colum B). Sometimes collum C will have blank cells and the rows of said blank cells can't be deleted.
This worked wonderfully until a duplicate crept in to Column B. Now there is the potential for many more duplicates. Column B holds an 8 digit numerical number. I am just struggling to add in a parameter that ignores any duplicates that have been added
I have an excel table with several columns two of which I am interested in. What I am trying to do is filter the first column with a specific criterion and then copy the visible values from the other column into a range object. After that I need to remove duplicates. The problem is I get an error. Here's the code. There are a lot of duplicates.
i have a wordlist containing about 0.5 Million words in col.A and Millions of meanings in Col.B. Now in Col. A there are many duplicates. I would like to make one cell of all duplicates in col.A and put their meanings together in B with seperator ";". Its very important that there are no duplicates in Col. B.
For example: Col. A Col.B w1 m1;m2;m3 w1 m1;m2;m5 w2 m23;m24 w2 m50
Now after running the macro the list should look like:
Col.A Col.B w1 m1;m2;m3;m5 w2 m23;m24;m50
The words in col. A are alphabetically ordered and all the duplicates are followed by each other.
I have been trying for a day now to figure out how to remove the unique cells and keep the duplicates only. I have tried a macro but it does not seem to work. Has any one run into this before. I have attached a sample what I would like to do is remove all non-duplicates from column A. The only macro I could find was this:
I am trying to design a macro to remove the duplicates from a selected range of cells. I dont want to specify the range in the code. Rather I want the macro to remove the duplicates from a selected range of cells.
I am trying to remove duplicates from a submitted list of data with alphanumeric data such as BK123034, WKD 4754 in the list. Visually, I can see that there are duplicates when I sort the list into order. However, when I use 'remove duplicates', it says that there are none. I have tried formatting all as text, numbers and general, but no better. I have also tried the formula =or(a1=A2, A2=A3) and they all come out as false.
I have cells A11 to G250. In column E11 to E250 there are lots of duplicate product descriptions. Any duplicates in that column (E11 to E250) I want to remove that full row leaving just a single row (A to G) for that product removing the full row A to G for the duplicates.
I would like to remove duplicates in column D, but keep the first instant. It was to look at column A for duplicates then look at column D and remove all but the first one.
Data Column A Column D CH010 DUE FROM MANAGEMENT CH010 DUE FROM MANAGEMENT CH010 DUE FROM MANAGEMENT CH010 DUE FROM MANAGEMENT CH010 DUE FROM MANAGEMENT CH010 DUE FROM MANAGEMENT CH010 DUE FROM MANAGEMENT CM03 SECURE MESSAGING CM05 SECURE MESSAGING NIM010 WEAS MODEL XAP010 OPEN FINANCIAL XAP010 OPEN FINANCIAL ........................
We are having a problem merging our databases. We are using excel to streamline databases to be included in our GiftWorks database of donors. However we are having the problem of many duplicates with multiple addresses, contact info etc. I have come to find that there is no way other than the "bitch work" method of going thru by hand in the GiftWorks database to find duplicates. However we can make a smartlist and export to excel and then perhaps merge the new info with this one. I was just wondering if there is anyway to sort duplicates and merge their information by first name/last name.
Column A is unique data and consists out of date and time and Column B is data which indicates the state of an application.
So every task the application is performing gets logged every minute so Column B is showing duplicates.
Now what I want to do is to remove the duplicate actions but only if they are subsequent. So an action can happen several times a day but only once in an hour. But if I use the AdvancedFilter with the Unique Records only, it removes all the duplicates also from later on the day and that is not the intention.
So I would need a macro for it. My problem is that I somewhat know how it should work, but I don't know the syntax to write it. So it should be something like If the data on the next line is the same as the current, then remove the next line, if not go to the next line and check again.
The formatting etc is same for real file – Note that the real file will have up to 65000 rows of data like this.
My Problem is to remove conditionally some duplicate rows - however my difficulty trying to thinking about this is that I cant use a unique value comparison as the columns I to L they all are X s so when a X is present in columns I to L need to be conditional on comparing values in other columns
What is needed is to repeat remove duplications in each of the four columns I to L (titled E1, E2, E3, and E4 ) when there is a match of string in columns F, G and M – but don’t delete if on same row there is a value in columns O to S (E5 to E9).
In the demo file – I have highlighted in yellow the rows that would be removed if the code works.
So; IF there is an “X” in column “I” (E1) and the string in column F (personnel number) is the same as row below it, and the string in column G (person name) is same as below it, and the string in Column M (Team number) is same as row below it, and there are NO values in columns O to S (E5 to E9) on same row – Then delete the duplicate/s – retain only one.