LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default compare 2 columns, enter data from other column

I have been struggling with a formula - help!
I want to copy data from one sheet to another but only if there is an exact
match of data.

I need help with the structure of the formula - I can massage it later to
fit the specifics.

First, I need to find any exact match of the text in D1 of Doc1 to any row
in column E of Doc2.

If there is a match, then:
from that match's row in Doc2, I want to enter the data from column A into
column B of L1's row in Doc1.
If there is no match, nothing happens.

Can anyone help? Spent hours trying to set this up. I need the formula -- or
if someone knows how to write a macro to do this, that would work too.
Doc1
A B C D E F
1 AB
2 CD
3 ED
4 GH
5 IJ
6 KL

Doc2
A B C D E
1 4 NO
2 6 ST
3 -4 ED
4 5 MO
5 5 IJ
6 -5 AB
7 2 CD
8 5 KL


Doc1
A B C D
1 -5 AB
2 2 CD
3 -4 ED
4 GH
5 5 IJ
6 5 KL


 
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
Macro to select cells in column enter data then press enter NP New Users to Excel 1 February 20th 08 04:21 PM
Compare different columns and put unique data in the next available column [email protected] Excel Discussion (Misc queries) 0 March 13th 07 03:22 PM
Compare 2 columns and put unique data in column 3 [email protected] Excel Discussion (Misc queries) 2 March 7th 07 02:54 PM
Compare 2 columns and choose one and enter answer in third column Betsy Excel Worksheet Functions 1 June 30th 06 06:17 PM
Compare multiple column of data and list out common and unique component in adj columns kuansheng Excel Worksheet Functions 15 February 1st 06 10:49 PM


All times are GMT +1. The time now is 10:52 PM.

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"