Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
PAG PAG is offline
external usenet poster
 
Posts: 14
Default Combine column data into one

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default Combine column data into one

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Combine column data into one

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
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


  #4   Report Post  
Posted to microsoft.public.excel.programming
PAG PAG is offline
external usenet poster
 
Posts: 14
Default Combine column data into one

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
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



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Combine column data into one

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 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
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I combine 4 columns of data into one column? Cam890 Excel Discussion (Misc queries) 1 September 16th 09 04:34 PM
how to combine number data from one column into another column newbie Excel Discussion (Misc queries) 1 September 2nd 08 02:18 AM
combine column data Mitchell_Collen via OfficeKB.com Excel Discussion (Misc queries) 3 February 5th 08 08:03 PM
how to combine data from Column A & B CORaccounting Excel Discussion (Misc queries) 3 December 1st 07 03:59 PM
How to combine data from two columns into one column? dcnguyen Excel Worksheet Functions 3 January 8th 06 11:40 PM


All times are GMT +1. The time now is 03:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"