PC Review


Reply
Thread Tools Rate Thread

Combine column data into one

 
 
PAG
Guest
Posts: n/a
 
      15th Feb 2008
Hi,

Can anyone please help. I am very new to excel macros.
I am looking to use an excel macro to combine data in a workbook from one
column(A) on a worksheet and one column(A) from a second woksheet into a new
worksheet. The data in the columns in the worksheets could contain the same
data so I would also like to do the folllowing. I would want to sort and
compare the data and have the newly created worksheet show only one set of
data with no duplicates.

Thank You

Peter
 
Reply With Quote
 
 
 
 
David
Guest
Posts: n/a
 
      15th Feb 2008
Sort of lost me here, but you can combine the values in two worksheets with a
simple formula. On Sheet 3 in cell A1 "=+Sheet2!A1+Sheet1!A1". If you are
then trying to get unique values, Data/Filter/Advanced Filter/Unique Values
Only.

Hope that helps.

David

"PAG" wrote:

> Hi,
>
> Can anyone please help. I am very new to excel macros.
> I am looking to use an excel macro to combine data in a workbook from one
> column(A) on a worksheet and one column(A) from a second woksheet into a new
> worksheet. The data in the columns in the worksheets could contain the same
> data so I would also like to do the folllowing. I would want to sort and
> compare the data and have the newly created worksheet show only one set of
> data with no duplicates.
>
> Thank You
>
> Peter

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      15th Feb 2008
David

>but you can combine the values in two worksheets with a
>simple formula


Not with the formula you posted.

Try =Sheet2!A1 & Sheet1!A1 to combine

Unless you mean to sum the two, in which case your original is OK.

The "+" in "=+" is not necessary.


Gord Dibben MS Excel MVP

On Fri, 15 Feb 2008 15:05:00 -0800, David <(E-Mail Removed)>
wrote:

>Sort of lost me here, but you can combine the values in two worksheets with a
>simple formula. On Sheet 3 in cell A1 "=+Sheet2!A1+Sheet1!A1". If you are
>then trying to get unique values, Data/Filter/Advanced Filter/Unique Values
>Only.
>
>Hope that helps.
>
>David
>
>"PAG" wrote:
>
>> Hi,
>>
>> Can anyone please help. I am very new to excel macros.
>> I am looking to use an excel macro to combine data in a workbook from one
>> column(A) on a worksheet and one column(A) from a second woksheet into a new
>> worksheet. The data in the columns in the worksheets could contain the same
>> data so I would also like to do the folllowing. I would want to sort and
>> compare the data and have the newly created worksheet show only one set of
>> data with no duplicates.
>>
>> Thank You
>>
>> Peter


 
Reply With Quote
 
PAG
Guest
Posts: n/a
 
      16th Feb 2008
Hi

Since I am new to excel and macros I think it is hard for me to explain what
I am looking to do. I have data on two different sheets that I want to
combine into a new sheet but also not show the duplicate values.

In an excel workbook
sheet1 sheet2
A C
B A
C B
D S
E B
F G
G J
H I

"Gord Dibben" wrote:

> David
>
> >but you can combine the values in two worksheets with a
> >simple formula

>
> Not with the formula you posted.
>
> Try =Sheet2!A1 & Sheet1!A1 to combine
>
> Unless you mean to sum the two, in which case your original is OK.
>
> The "+" in "=+" is not necessary.
>
>
> Gord Dibben MS Excel MVP
>
> On Fri, 15 Feb 2008 15:05:00 -0800, David <(E-Mail Removed)>
> wrote:
>
> >Sort of lost me here, but you can combine the values in two worksheets with a
> >simple formula. On Sheet 3 in cell A1 "=+Sheet2!A1+Sheet1!A1". If you are
> >then trying to get unique values, Data/Filter/Advanced Filter/Unique Values
> >Only.
> >
> >Hope that helps.
> >
> >David
> >
> >"PAG" wrote:
> >
> >> Hi,
> >>
> >> Can anyone please help. I am very new to excel macros.
> >> I am looking to use an excel macro to combine data in a workbook from one
> >> column(A) on a worksheet and one column(A) from a second woksheet into a new
> >> worksheet. The data in the columns in the worksheets could contain the same
> >> data so I would also like to do the folllowing. I would want to sort and
> >> compare the data and have the newly created worksheet show only one set of
> >> data with no duplicates.
> >>
> >> Thank You
> >>
> >> Peter

>
>

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      17th Feb 2008
You are saying you want S, I and J on a third worksheet?

See Chip Pearson's site for formulas to extract uniques from two lists.

Could be something there that will suit your needs.

http://www.cpearson.com/excel/ListFunctions.aspx


Gord

On Sat, 16 Feb 2008 15:25:00 -0800, PAG <(E-Mail Removed)> wrote:

>Hi
>
>Since I am new to excel and macros I think it is hard for me to explain what
>I am looking to do. I have data on two different sheets that I want to
>combine into a new sheet but also not show the duplicate values.
>
>In an excel workbook
>sheet1 sheet2
>A C
>B A
>C B
>D S
>E B
>F G
>G J
>H I
>
>"Gord Dibben" wrote:
>
>> David
>>
>> >but you can combine the values in two worksheets with a
>> >simple formula

>>
>> Not with the formula you posted.
>>
>> Try =Sheet2!A1 & Sheet1!A1 to combine
>>
>> Unless you mean to sum the two, in which case your original is OK.
>>
>> The "+" in "=+" is not necessary.
>>
>>
>> Gord Dibben MS Excel MVP
>>
>> On Fri, 15 Feb 2008 15:05:00 -0800, David <(E-Mail Removed)>
>> wrote:
>>
>> >Sort of lost me here, but you can combine the values in two worksheets with a
>> >simple formula. On Sheet 3 in cell A1 "=+Sheet2!A1+Sheet1!A1". If you are
>> >then trying to get unique values, Data/Filter/Advanced Filter/Unique Values
>> >Only.
>> >
>> >Hope that helps.
>> >
>> >David
>> >
>> >"PAG" wrote:
>> >
>> >> Hi,
>> >>
>> >> Can anyone please help. I am very new to excel macros.
>> >> I am looking to use an excel macro to combine data in a workbook from one
>> >> column(A) on a worksheet and one column(A) from a second woksheet into a new
>> >> worksheet. The data in the columns in the worksheets could contain the same
>> >> data so I would also like to do the folllowing. I would want to sort and
>> >> compare the data and have the newly created worksheet show only one set of
>> >> data with no duplicates.
>> >>
>> >> Thank You
>> >>
>> >> Peter

>>
>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to combine column data into one row Haroon Microsoft Excel Programming 5 21st Jan 2009 03:34 PM
how to combine number data from one column into another column newbie Microsoft Excel Misc 1 2nd Sep 2008 02:18 AM
combine column data Mitchell_Collen via OfficeKB.com Microsoft Excel Misc 3 5th Feb 2008 08:03 PM
how to combine data from Column A & B CORaccounting Microsoft Excel Misc 3 1st Dec 2007 03:59 PM
How to combine data from two columns into one column? dcnguyen Microsoft Excel Worksheet Functions 3 8th Jan 2006 11:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:25 PM.