I currently have a spreadsheet that contains about 1700 lines of data related to ~400 different clients which I am looking to consolidate.
The data is currently in this format (a set like this repeated ~400 times with anywhere between 3 and 7 services):
Company ID #
Company Name
Service1
Company ID #
Company Name
Service2
Company ID #
Company Name
Service3
I would like to have the data in this format (one row per company with all of the services in the third column concatenated into a single cell, all while removing the duplicate rows.)
Company ID #
Company Name
Service1, Service2, Service3
How to create the code (or describe the process) necessary to do this?
I've been working on a spreadsheet that is used to track the application process of numerous clients. In doing this, I have a row at the top of each client that is used as a sumarry column. Below each cell in the top row, I have up to 30 non-adjacent cells that I'm trying to concatenate in the top cell separated by new lines. I'm also wanting to not display any duplicates, as there are up to only 5 steps that could be shown for each record. I found a UDF that will search an array and return only the unique values, but it accepts the data as an array, and it returns it as an array also. I seem to be having trouble passing the array from the sheet as well as formatting and returning the array with line breaks.
I have a data table that is similar to below (actual table is very large 1000+ rows) but duplicate column is empty.
I don't want to add additional data (i.e. formula to perform concatenate) to other columns as it takes a very long time even with screen updating turned off.
I want to use vba to 1) determine how many rows there are in the worksheet (this updates from an outside datasource) 2) Concatenate baseno & altno and determine if the concatenated value is duplicated 3) Within those duplicates for each baseno&altno pair determine if verno is different 4) Set "Duplicate" value for each duped baseno&altno pair where verno is different
So the end resulting table after macro runs would be
baseno altno verno duplicate
[Code]....
I have been for weeks now and just can't get this to work. I can get it so that I can determine duplicates on one column but I can't seem to get it to concatenate inside the script and compare without writing back to the sheet (which is too slow and I don't want to do).
My issue is that I have 1200+ addresses to make more readable - the first column is the street name, the second is the post code(s) relative to the street - what Ideally I'd like to achieve is one row per street, the street name followed by the post codes... i.e. take this...
I Want to be able to put in Col A the concatenate results of all equal P/N's from any given list. Or at least select the few cells that i know are duplicates and from that copy the Location to a single Column.
ColA ColB__ColC ______Loc__PN 1,2____1___A _______2___A _______3___B 4,5____4___C _______5___C
I need to concatenate varying numbers of cells based on duplicates found in a separate column, but I'm not sure how to approach it. I have 41,000+ rows of data, so I have to find a formula.
I am using the following code to grab installed software on a remote computer through a macro in Excel 2007. I don't have the entire code I'm using as the majority of it works, this section here though is where I'm having problems.
I've got the following table (see attachment). In a column A there're the articles and some of them appear several times. In column B there's the quantity. The goal is to get in column C the sum of quantities in column B for the repetitive articles in column A and then delete the repetitive articles.
so the table should look like: 3RD125070442H 30 3RE071870493H 4 3RI100009624T 15
in excel 2007 I found only the function to remove the duplicate cells but I need to get the sums before removing them and have no clue how to that.
I would like to obtain a table in the following format where I can find
ID HostLocation NDaysinHost marina.silva USA, Norway, Bolivia, Italy, Ecuador... 100,45,67,8,9... tatiana.gottig Venezuela, Chile, Peru, Canada 89,54,32,6
Searching in the net I found the following code:
VB: Sub groupConcat()Dim dc As Object Dim inputArray As Variant Dim i As Integer Set dc = CreateObject("Scripting.Dictionary") inputArray = WorksheetFunction.Transpose(Sheets(1).Range("A2:C9").Value)
[Code]....
However I only obtain the first two columns concatenated. It says that for more columns repeat the loop, however I did and the result was not the expected, it returned me the same two columns again concatenated. How can I arrange this to fit my criteria?
I have 2 columns of data with 7,000 rows that I am trying to manipulate in the following way. The first column contains a list of car manufacturers (not really my example, but involves the same concept). The second column contains a list of different models of cars. For instance,
Ford | Taurus Chevrolet | Avalanche Saturn | Sky Ford | Explorer Honda | Accord Ford | Taurus
What I want is a list of 2 columns with UNIQUE car manufacturers in first column with a list of UNIQUE car models (comma delimited) in second column. So for this example, the first row could read " Ford | Taurus,Explorer". I don't want Taurus to appear twice. I got a lot of help from JBeaucaire from this post. I just can't add the ability to remove car models from the list also. Thanks in advance for all the help!
Desired results obtained via IF =IF(B2>0,A2&" , ",A2)&IF(C2>0,B2&" , ",B2)&IF(D2>0,C2&" , ",C2)&IF(D2>0,D2,"")
one , two , three , four one , two , three one , two one
Is there any smarter, shorter formula via Concatenate and Substitute or other formulas ?
My closest match, but not good enaugh is =SUBSTITUTE(CONCATENATE(A2&", "&B2&", "&C2&", "&D2), ", , ", " ") [ returna 2 commad ] one, two, three, four one, two, three, one, two one ,
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 sheet that looks like this. JOE D.02082008/28/199 H PAnnual Increase06/05/2006 JOE D.02082008/28/1995 H PReclassification06/11/2007 JOE D.02082008/28/1995 H PReclassification02/11/2008
The name is in Column F the employee Number is the 020820 and we want to only have the latest date in the last column.
So out of this data above. The bottom one with the 2/11/2008 is the one we want to keep. And delete those other 2.
The next group has duplicate names 10 of them. But only want to keep the most recent.
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.
The code below is supposed to sort and remove duplicates in the sheet in column A. So far it sorts, but I get an error when it tries to remove duplicates. I get an invalid object error.
Code: Sub sort_And_Remove_Dups_Top5_Open_And_Open() Dim lngLr As Long With Sheets("Top 5 Clients")