Merge Based On Columns If There Is Duplicated Data?

May 19, 2014

I have a large volume of data and i need to manage and organize somehow.

Example:

A B C D E
CHRIS AN204 2005 Apple Green
CHRIS AN204 2005 Apple Red
CHRIS AN205 2005 Apple Yellow
TOM AN204 2006 Apple Green

This should look like this

A B C D E
CHRIS AN204 2005 Apple Green, Red
CHRIS AN205 2005 Apple Yellow
TOM AN204 2006 Apple Green

I manage somehow to find a VBA code that will merge my rows, but it's not working as it should. It's losing data.

Also in a cell it can happen to have more than 255 characters.

View 1 Replies


ADVERTISEMENT

Merge And Sort Data Across Columns?

Dec 19, 2012

So I have several columns of data that have a location and then some numbers after it in additional columns. I need to be able to sort it so that all locations that are in both location columns are sorted first, and then any locations that are in one column but not the other column follows. Also the data associated with each column that follows the location needs to remain next to the location. Many times the columns will be of highly disportionate lengths too.

I've attached an HTML table so you can get an idea of what I am looking at, except what I'm dealing with is like.... hundreds of cells long.

I want to be able to turn this:

HTML Code: 

<table border="1" bordercolor="#FFCC00" style="background-color:#FFFFCC" width="100%" cellpadding="3" cellspacing="3">
<tr>
<td>A</td>

[Code].....

And in this 6 row example, I'd actually only be interested in the 4 letters that were in both columns. If it makes it easier, I would be okay with discarding the last rows, but would rather just have them sorted at the end, so I could check if....for example there were two different spellings of the same thing, and they should actually be included.

View 3 Replies View Related

Take Two Columns And Merge Them Without Losing Data

Nov 14, 2008

I've got two columns:

A, B
abc, def
qwe, rty
asd, fgh
zxc, vbn

And I need to bring these together in one column so it looks like this

C
abcdef
qwerty
asdfgh
zxcvbn

View 2 Replies View Related

Merge Sheets - Put Data Next To Columns?

Jun 7, 2012

I use the following code to merge all data a "master sheet", but I want to take the data and put it next to each other on the "master sheet", not under. For example, my range of data is "A1:D15" and I want to copy from all sheets. So my first paste would be A1:D15, then the next should be E1:H15.

I would like the code to find the used range, like it does currently.

Code:
Sub Merge()
Dim ws As Worksheet
ActiveSheet.UsedRange.Offset(0).Clear

[Code]....

View 1 Replies View Related

How To Merge Columns With Same Data In Excel

Sep 27, 2013

I've found macro, which merge rows with the same data

Example:

BEFORE:

january
1st

january
2nd

[Code] ........

Macro:

Option Explicit
Sub MergeSame()
Dim r As Range, c As Range
Dim i As Long, j As Long
Set r = Range("a1", Cells(Rows.Count, "a").End(xlUp))

[Code] .....

But i need use the same procedure for columns, it means:

BEFORE

A
B
C
D
E
F

january
january
january
february
february
february

AFTER

A
B
C
D
E
F

january
february

I've tried modified macro marked above, but without success...

View 3 Replies View Related

Duplicated Vaues In 2 Columns

Apr 11, 2009

COLUMN CCOLUMN DCAST NUMBERIDAISLECAST NUMBERIDAISLE99909100DUPLCATE999091019990910299909103999091049990910599909100DUPLCATE

Example: i can have the same number repeated in column C & the same number repeated in column D But numbers in both column can not be repeated on the same row
Values are added in columns C & D sheet2 by userform combobox . i am looking or a messagebox warning when = cell values in both column are found.

View 9 Replies View Related

Merge Two Columns To Create 1 Column With All The Data

Mar 12, 2014

I have 2 columns full of information feeding from 2 different sources on our internet database

I would like to collect this information into 1 column to create a drop down list

As these are expanding tables feeding from the internet I don't think copy and paste into one column will work (I'm not sure about this but I would prefer a formula to avoid any issues).

View 4 Replies View Related

Merge Columns Without Losing Data Conditionally

Oct 30, 2013

My data is in column A , Column B and Column C, where are column C has a uniuqe value for certain rows.

Based on these uniques value, column A and Column B should be merged to singe Row without loosing data.

MY Data:
Source address
Destination address
Destination Port
Application
IP Protocol

192.168.1.2
192.168.250.10
53
dns
udp

[Code] .......

Result expecting is :

Source address
Destination address
Destination Port
Application
IP Protocol

[Code] .......

View 7 Replies View Related

Merge Duplicate/Similiar Rows Keeping Data In Same Columns

Sep 1, 2008

After sorting and filtering rows with in a set range I will have several rows that are almost duplicates. This is normal and expected due to how the workbook is used. Among these rows also will be several single rows that are not duplicates. It is important that I combine any two duplicates into one row. Example:

CREATE TABLES LIKE BELOW?
ABC D E F G H I J K

1 NameA 0XX15930777PS101300PS9

2 NameA0XX15930777PS91200PS10

3 NameX1159XXP555FBX1545PS9

4 NameB0A1234P123PS101263PS9

5 NameB1A1234P123PS90512PS10


What I need is this end result:

CREATE TABLES LIKE BELOW?
ABC D E F G H I J K

1 NameA 0XX15930777PS91200PS10PS101300PS9

2 NameX1159XXP555FBX1545PS9

3 NameB1A1234P123PS90512PS10PS101263PS9


It’s important that the data in each column stay with in that same column. Also of course it needs to be on the same row with the same person (NameA and NameB). The Columns that would determine if it’s a duplicate are D and E –. I would need this to be preformed via macro or some easy way so that others will not have a hard time. It will be on a protected Shared Workbook with Excel 2003. I've enclosed a Sample. How can I sort these or accomplish this and maintain the data where it needs to be?

View 5 Replies View Related

Merge Data From Sheet2 To Sheet1 Based On Required Criteria

May 1, 2014

I need to merge data from sheet 2 to data on sheet1.

Sheet 1 data is in the format given below with start date in G column and campaign ID in column H.

Start Date
Campaign ID

17-May-14
3834177

[Code].....

I need to look up Campaign ID of sheet 1 in sheet 2 and add all insertions and platform for that campaign to next columns i.e. I and J in sheet 1. For ex Campign ID 3834177 of sheet 1 has 5 insertions corresponding to it in sheet 2 hence the insertions and their Platform would transfer to sheet 1. Since Campign ID 3834177 is only in 2 rows on sheet 1, 3 more rows would need to be inserted in sheet 1 to accommodate 5 items and it would look like.

Start Date
Campaign ID
Insertion ID
Platform

[Code].....

View 1 Replies View Related

Add Duplicated Data

Dec 2, 2009

i am using the following formula to extract data quantities of items from a worksheet:

HTML Code: =IF(ISERROR(VLOOKUP(A9,OS_SALES_ORDERS,3,FALSE)),0,(VLOOKUP(A9,OS_SALES_ORDERS,3,FALSE)))

is there any way i can modify it so that it adds the qtys of the items which have duplicated item nºs?

View 4 Replies View Related

Delete ALL The Data That Is Duplicated

May 11, 2007

I have data like this a column
0
1
1
2
2
3
4
5
5
5
6
7
8
9

I need to delete ALL the data that is duplicated such that the column would read
0
3
4
6
7
8
9

I am aware of the advanced filter feature that shows only unique data - but that still doesn't completely eliminate the duplicated data.

View 9 Replies View Related

Check Duplicated Data

Mar 23, 2008

I am looking a program to check if any data be duplicated to avoid any mistakes.

There are many program for duplicate check but they all only compare the cells but not to check the data within any cells one by one.

Is there any program to check the duplicated data in the selected column, columns or cells?

View 9 Replies View Related

Vlookup With Duplicated Data

Sep 6, 2006

I seem to having a problem with my spreadsheet using Vlookup. It's mainly because on the 1st column, there are items which have duplicates and are differentiated only by the 3rd and 4th column.

example:

1st column:
Bob
Jane
John
Bob

3rd column:
Red
Orange
Purple
Blue

4th Column
1
2
3
4

Basically I'm doing a vlookup and but i want to combine (or sum) the 4th column values of Bob (Red) and Bob (Blue). I know I could use the SUMIF function in order to do what I want but I was wondering if I could nest that function within the vlookup so that it would do it automatically?

View 9 Replies View Related

Two Sheets - Deleting Duplicated Data

Jul 24, 2013

I have two sheets. One of them has a long list of numbers and the other one has a shorter list, all of which are also on the first sheet. How can I automatically delete the second sheets numbers from the first sheet?

View 7 Replies View Related

Delete Both Rows If Data Is Duplicated

Oct 26, 2009

I have a worksheet with that I need to delete both rows if the data in one of the columns is the same. I know how to delete the duplicate row, but I need both rows deleted..........

From the example above I would want Rows 1,2 and 10,11 and 12,13 deleted based on the data in column D

View 2 Replies View Related

Dependent Lists With Duplicated Data

Jan 3, 2008

i need a way so they can be differentiated. This is how my validation are set out

and my details of cars { list}
http://img509.imageshack.us/my.php?image=oysc7.jpg

once the end user chooses the model i need it to display the information of that model like the Price for a day and NO of doors

View 9 Replies View Related

Merge Two Workbooks. Copy Column Data Based On Numerical ID Match Of Another Column.

Mar 13, 2009

I am trying to get excel to search a workbook/(or worksheet if easier) for a matching unique value and fill in its associated data. My first workbook has the SKU (A) filled in but not the UPC (B). My second workbook has both the SKU (A) and the matching UPC (C) filled in.

I need to take both workbooks/(worksheets), compare the SKUs, and if a matching SKU is found, extract the UPC from Workbook 2 and fill in the UPC field in Workbook 1, and if no UPC is present in Workbook 2, then it leaves the cell in Workbook 1 blank.

View 2 Replies View Related

Enter And Highlight Data In Columns Based On Other Columns

Jul 10, 2009

I have a worksheet with 20+ columns. For this macro, I only need to focus on 4 of them. However, none of these columns are ever in a fixed position so the macro would need to find them by name and NOT by column position. Here they are...

1. Vacation Type (will only have a text value of either "Cold" or "Warm")

2. Vacation Started (will always have a date *x/xx/xxxx)

3. Vacation Ended (sometimes it will have a date '*x/xx/xxxx' and sometimes it will NOT have a date and will be truly blank)

4. Number of Days (currently has ALL truly blank cells)

THIS WHOLE MACRO SHOULD NOT BE CASE SENSITIVE ANYWHERE

Here's what I would like the macro to do...

Scenario 1 - for "Cold" values Find "Cold" text values in the "Vacation Type" column

"Cold" values WITH a date in the "Vacation Ended" columnIF there IS a date in the "Vacation Ended" column in the same row, put the number of days difference between the "Vacation Started" column and "Vacation Ended" column in the "Number of Days" column.

The amount of days in the "Number of Days" column will determine whether these cells should be highlighted GREY or RED.

Scenario 1-AIF the number of days difference is 7 days or less, highlight the cells in the "Vacation Ended" column and "Number of Days" column RED.

OR…
Scenario 1-BIF the number of days difference is MORE than 7 days, highlight the cells in the "Vacation Ended" column and "Number of Days" column GREY..................................

View 2 Replies View Related

Merge The New And Old Columns?

Mar 31, 2014

I have two columns, which have different length and in which there can be three types of data:

The data also in the first and the second column, so it is an old data.Second is, that the data is in the first column, but not in the second, so it is old, but it was solved.The third type is, when the data is in the second column, but not iin the first, so it is new data.

My task is to regularly update the list (so I have to merge the new and old columns), to see in which conditions the data is, but not to delete any of them (only the recurring, so if it is old, then it must not be listed two times).

View 1 Replies View Related

Merge Columns A And B To C

Feb 7, 2009

I have a need to get the data from columns A and B and transfer to C but one line from A and second line from B and this successively until the end of A and B. They will have the same number of lines.

View 3 Replies View Related

How To Merge Two Columns Together

Jan 26, 2013

How I can merge two columns together and keep the data in both columns?

I have an address issue when the data was converted to excel it put the numbers part of the address in column "C" and the street name in column "D".

View 2 Replies View Related

Merge 2 Columns

Sep 12, 2008

i am trying to create a macro that merges two columns in excel.

View 9 Replies View Related

VBA Merge Multiple Columns

Feb 15, 2014

I'm currently working with the "Original"sheet shown on the attached file. From this, you will see that there is generic information contained in columns A:D then columns containing a month date and the associated FTE figure.

What I'm trying to do is as follows:

-Insert two columns after the "Investment Role" column, with column headers of "Period" and "FTE"
-Then, for each month column for each record, create a new row one under the other, copy the values in columns A:D and paste them into the newly created row,
-Then move the Date value for each month and the associated FTE figure and put these in the "Period" and "FTE"columns.

I've attached a file showing the 'Original' dataset and 'Desired Outcome' to look at.

Although the values in all of the fields may change month on month, and the number of rows may change, the number of columns will remain the same.

Merge Columns Test.xls‎

View 5 Replies View Related

Merge Values From 2 Columns Into 1

Jul 9, 2009

I'd like to perform a merge of value between columns D and E.
So if D9's value = 2 and E9's value = 15
then the result will be
E9=215

I've tried the following but I haven't gotten it to work.

View 7 Replies View Related

Merge Two Columns To One Filled Column?

Jul 23, 2014

I have two columns that are the same field, both Middle Name. The first column does not have every single row filled and the second column has every row the first column does not have and vice versa. I want to merge them to one filled column.

View 2 Replies View Related

Concatenate Function To Merge Certain Columns

Aug 14, 2009

I have a worksheet with 10000 plus entries in ten columns From K to T. I wish to have a macro with Concatenate function to merge certain Columns from these ten columns, in one column with help of input boxes which may ask inputs, about range (from and to ), and number of digits to concatenate in the required column. I use Excel 2003 XP in work but an example is 2007 attached.

View 5 Replies View Related

Merge Rows Into Columns With More Than One Variable

Nov 12, 2007

I have been scanning web forums for days and have not found a solution to my question. I have found similar, but unfortunately am not clever enough with Excel VBA to adapt.

I have two columns of data which I want merged into rows (a) by survey number and (b) by time slots. The data I have is similar to:

Survey No.....Results
12345...........9am-12pm
12345...........3pm-6pm
12345...........No answer
56789...........6am-9am
56789...........12pm-3pm
56789...........6pm-8pm
56789...........10pm-12am
.....................

View 12 Replies View Related

Select Columns To Merge Within For Loop

Nov 18, 2011

My issue is I want to use a for loop to go through a spreadsheet. Within the for loop if a certain condition is true I want it to select all columns from A to AW and merge them together.

Example of what I have so far:

Sub MergeHeaders
dim i as Intger, LastRow as Integer
LastRow = Cells(Rows.Count, "CP").End(xlUp).Row
For i = 1 to LastRow
'Check if the leading character is a letter, not number
If Asc(Cells(i, "AP")) > 64 Then
'I want select from A to AW only for current row i, then merge
end If
next i
end sub

View 1 Replies View Related

Script To Merge Few Columns From Different Worksheet

Oct 26, 2013

I have 13 different worksheets with the same header columns, i would like to merge into one creating new work sheet. All the data in column A should keep on adding on the column A from all the worksheet and from column N going across. I have more than million records on each sheet

I have dropped the file on [URL]... for example

View 8 Replies View Related







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