kshitij_dch
Active Member
- Joined
- Apr 1, 2012
- Messages
- 362
- Office Version
- 365
- 2016
- 2007
- Platform
- Windows
Hi,
I have a workbook in which sheet 1 has few ID and name with details and sheet 2 is having list of ID and name with details .
Looking for a macro which will match the ID in sheet1 with sheet2 , if ID matches then look for the amount in column D if amount is same in both the sheets then copy the place and name from sheet 2 to sheet1
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>
<colgroup><col span="2"><col><col></colgroup><tbody>
</tbody>
I have a workbook in which sheet 1 has few ID and name with details and sheet 2 is having list of ID and name with details .
Looking for a macro which will match the ID in sheet1 with sheet2 , if ID matches then look for the amount in column D if amount is same in both the sheets then copy the place and name from sheet 2 to sheet1
Sheet 1 | |||
ID | Names | Place | Amount |
11 | Antony | Texas | 231 |
22 | Rodger | Mexico | -639 |
33 | Marcos | USA | -300 |
44 | Lily | Brazil | 500 |
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>
Sheet 2 | |||
ID | Names | Place | Amount |
11 | Antony | Brazil | 231 |
11 | Antony | USA | -231 |
44 | Lily | Texas | 500 |
33 | Marcos | Mexico | -300 |
44 | Lily | Hungary | -231 |
22 | Rodger | Texas | 639 |
22 | Rodger | Hungary | -639 |
<colgroup><col span="2"><col><col></colgroup><tbody>
</tbody>