Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Sort and/or merge to worksheets.

Hi,
I am new to Excel, and need some help in sorting and/or merging two
worksheets. The scenario is:

I have two worksheets (let's say "T1" and "T2"), each contain two columns of
data.
The worksheet "T1" is a complete list of tag's (column A) and it's
describing text (column B).
The worksheet "T2" is arranged in the same way, but it doesn't contain the
complete list of tags (just a few hundred of them) the describing text on the
other hand is different. My goal is to replace the describing text for each
tag (for each tag that also exist in "T2") in "T1" with the text from the
same tag in "T2".

Is there an easy way to do this?

regards,

mikri.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Sort and/or merge to worksheets.


in C1 in T1 put the following and copy down

=if(ISNA(VLOOKUP(A1,T2!A:B,2,0)),B1,VLOOKUP(A1,T2! A:B,2,0))

This will place T2 descriptions in column C where matched or existing Column
B descriptions where no match.

If correct, copy, paste special==values in Column C and then delete B.

TEST FIRST!

"mikri" wrote:

Hi,
I am new to Excel, and need some help in sorting and/or merging two
worksheets. The scenario is:

I have two worksheets (let's say "T1" and "T2"), each contain two columns of
data.
The worksheet "T1" is a complete list of tag's (column A) and it's
describing text (column B).
The worksheet "T2" is arranged in the same way, but it doesn't contain the
complete list of tags (just a few hundred of them) the describing text on the
other hand is different. My goal is to replace the describing text for each
tag (for each tag that also exist in "T2") in "T1" with the text from the
same tag in "T2".

Is there an easy way to do this?

regards,

mikri.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default Sort and/or merge to worksheets.

If the tags are unique, then the lookup function is what you want to do

I would add a new column to T1 that adds something like this

Add to cell C2 and copy to every cell in column c.
=lookup(A2,'T2'B2: B1000,'T2'B2: B1000)

then add a new column D which will take column C if there is data,
otherwise, take column B

Add to cell D2 and copy to evvery cell
=if(C2 = "",B2,C2)

You can then hide columns C and D.



"mikri" wrote:

Hi,
I am new to Excel, and need some help in sorting and/or merging two
worksheets. The scenario is:

I have two worksheets (let's say "T1" and "T2"), each contain two columns of
data.
The worksheet "T1" is a complete list of tag's (column A) and it's
describing text (column B).
The worksheet "T2" is arranged in the same way, but it doesn't contain the
complete list of tags (just a few hundred of them) the describing text on the
other hand is different. My goal is to replace the describing text for each
tag (for each tag that also exist in "T2") in "T1" with the text from the
same tag in "T2".

Is there an easy way to do this?

regards,

mikri.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Sort and/or merge to worksheets.

Thanks!

Both suggestions works perfect!

"Toppers" wrote:


in C1 in T1 put the following and copy down

=if(ISNA(VLOOKUP(A1,T2!A:B,2,0)),B1,VLOOKUP(A1,T2! A:B,2,0))

This will place T2 descriptions in column C where matched or existing Column
B descriptions where no match.

If correct, copy, paste special==values in Column C and then delete B.

TEST FIRST!

"mikri" wrote:

Hi,
I am new to Excel, and need some help in sorting and/or merging two
worksheets. The scenario is:

I have two worksheets (let's say "T1" and "T2"), each contain two columns of
data.
The worksheet "T1" is a complete list of tag's (column A) and it's
describing text (column B).
The worksheet "T2" is arranged in the same way, but it doesn't contain the
complete list of tags (just a few hundred of them) the describing text on the
other hand is different. My goal is to replace the describing text for each
tag (for each tag that also exist in "T2") in "T1" with the text from the
same tag in "T2".

Is there an easy way to do this?

regards,

mikri.

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
Merge and sort two pages RD Wirr Excel Worksheet Functions 3 January 13th 06 01:34 AM
Merge and sort pages of data RD Wirr Excel Worksheet Functions 2 December 21st 05 06:38 AM
merge worksheets Mike Bubyn Excel Worksheet Functions 0 November 16th 05 10:34 PM
Merge Worksheets Douglas McDonald Excel Discussion (Misc queries) 3 October 17th 05 10:20 PM
Merge Worksheets B Bednarz Excel Worksheet Functions 1 June 1st 05 09:57 PM


All times are GMT +1. The time now is 05:52 AM.

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

About Us

"It's about Microsoft Excel"