Sort and/or merge to worksheets.

G

Guest

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

Guest

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

Guest

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

Guest

Thanks!

Both suggestions works perfect!

Toppers said:
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top