I have 2 separate workbooks. I want to carry/copy one column in workbook A to workbook B, but only carry/copy over that one column, the values in the "status" column. Since some employees are removed and some are added, I can't simply copy and paste the entire "status" column from workbook A to B. I want to use column A as the unique identifier, then copy the values in the status column from workbook A to B, but to copy only for the employees that still exist in workbook 2. From workbook 1 to 2, employee number 13 is not longer present, so that entire row for employee 13 shouldn't carry over into workbook 2. I've highlighted in red what needs to be carried/copied over from workbook 1 to 2.
For example, here is the sample dataset from the 2 workbooks:
<colgroup><col style="mso-width-source:userset;mso-width-alt:3185;width:67pt" width="90"> <col style="width:48pt" width="64" span="2"> <col style="mso-width-source:userset;mso-width-alt:3384;width:71pt" width="95"> <col style="width:48pt" width="64"> </colgroup><tbody>
[TD="width: 90"]workbook 1
[/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 95"][/TD]
[TD="width: 64"][/TD]
[TD="class: xl67"]employee[/TD]
[TD="class: xl65"]CITY[/TD]
[TD="class: xl65"]State[/TD]
[TD="class: xl68"]SALES[/TD]
[TD="class: xl69, align: right"] status
[/TD]
[TD="class: xl63, align: right"]$30,835[/TD]
[TD="class: xl64, align: right"] 1
[/TD]
[TD="class: xl63, align: right"]$71,638[/TD]
[TD="class: xl64, align: right"] [/TD]
[TD="class: xl63, align: right"]$245,013[/TD]
[TD="class: xl64, align: right"] 3 [/TD]
[TD="class: xl63, align: right"]$181,049[/TD]
[TD="class: xl64, align: right"] [/TD]
[TD="class: xl63, align: right"]$2,166,385[/TD]
[TD="class: xl64, align: right"] 1 [/TD]
[TD="class: xl63, align: right"]$24,132[/TD]
[TD="class: xl64, align: right"] m
[/TD]
[TD="class: xl63, align: right"]$937,589[/TD]
[TD="class: xl64, align: right"] [/TD]
[TD="class: xl63, align: right"]$21,980[/TD]
[TD="class: xl64, align: right"] 1 [/TD]
[TD="class: xl63, align: right"]$3,066,541[/TD]
[TD="class: xl64, align: right"] [/TD]
[TD="class: xl63, align: right"]$240,774[/TD]
[TD="class: xl64, align: right"] m [/TD]
[TD="class: xl67"]employee[/TD]
[TD="class: xl65"]CITY[/TD]
[TD="class: xl65"]State
[/TD]
[TD="class: xl68"]SALES[/TD]
[TD="class: xl69"]status[/TD]
[TD="class: xl63, align: right"]$42,184[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$47,845[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"][/TD]
[TD="class: xl64"][/TD]
[TD="class: xl63, align: right"]$252,426[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$3,332,213[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$34,241[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$1,402,102[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$28,294[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$4,839,064[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$487,642[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$33,670[/TD]
[TD="class: xl64"] [/TD]
</tbody>
For example, here is the sample dataset from the 2 workbooks:
8 | DALLAS | TX | ||
12 | SHREVEPORT | LA | ||
13 | METAIRIE | LA | ||
19 | HARTFORD | CT | ||
20 | BATON ROUGE | LA | ||
23 | OMAHA | NE | ||
29 | WATERBURY | CT | ||
33 | JACKSONVILLE | FL | ||
35 | OMAHA | NE | ||
49 | WATERBURY | CT | ||
workbook 2 | ||||
8 | DALLAS | TX | ||
12 | SHREVEPORT | LA | ||
19 | Hartford | CT | ||
20 | BATON ROUGE | LA | ||
23 | OMAHA | NE | ||
29 | WATERBURY | CT | ||
33 | JACKSONVILLE | FL | ||
35 | OMAHA | NE | ||
49 | WATERBURY | CT | ||
55 | New Haven | CT |
<colgroup><col style="mso-width-source:userset;mso-width-alt:3185;width:67pt" width="90"> <col style="width:48pt" width="64" span="2"> <col style="mso-width-source:userset;mso-width-alt:3384;width:71pt" width="95"> <col style="width:48pt" width="64"> </colgroup><tbody>
[TD="width: 90"]workbook 1
[/TD]
[TD="width: 64"][/TD]
[TD="width: 64"][/TD]
[TD="width: 95"][/TD]
[TD="width: 64"][/TD]
[TD="class: xl67"]employee[/TD]
[TD="class: xl65"]CITY[/TD]
[TD="class: xl65"]State[/TD]
[TD="class: xl68"]SALES[/TD]
[TD="class: xl69, align: right"] status
[/TD]
[TD="class: xl63, align: right"]$30,835[/TD]
[TD="class: xl64, align: right"] 1
[/TD]
[TD="class: xl63, align: right"]$71,638[/TD]
[TD="class: xl64, align: right"] [/TD]
[TD="class: xl63, align: right"]$245,013[/TD]
[TD="class: xl64, align: right"] 3 [/TD]
[TD="class: xl63, align: right"]$181,049[/TD]
[TD="class: xl64, align: right"] [/TD]
[TD="class: xl63, align: right"]$2,166,385[/TD]
[TD="class: xl64, align: right"] 1 [/TD]
[TD="class: xl63, align: right"]$24,132[/TD]
[TD="class: xl64, align: right"] m
[/TD]
[TD="class: xl63, align: right"]$937,589[/TD]
[TD="class: xl64, align: right"] [/TD]
[TD="class: xl63, align: right"]$21,980[/TD]
[TD="class: xl64, align: right"] 1 [/TD]
[TD="class: xl63, align: right"]$3,066,541[/TD]
[TD="class: xl64, align: right"] [/TD]
[TD="class: xl63, align: right"]$240,774[/TD]
[TD="class: xl64, align: right"] m [/TD]
[TD="class: xl67"]employee[/TD]
[TD="class: xl65"]CITY[/TD]
[TD="class: xl65"]State
[/TD]
[TD="class: xl68"]SALES[/TD]
[TD="class: xl69"]status[/TD]
[TD="class: xl63, align: right"]$42,184[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$47,845[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"][/TD]
[TD="class: xl64"][/TD]
[TD="class: xl63, align: right"]$252,426[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$3,332,213[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$34,241[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$1,402,102[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$28,294[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$4,839,064[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$487,642[/TD]
[TD="class: xl64"] [/TD]
[TD="class: xl63, align: right"]$33,670[/TD]
[TD="class: xl64"] [/TD]
</tbody>