Merge duplicate row values from sheet 1 to sheet 2 with macro

bahrami

New Member
Joined
Feb 26, 2022
Messages
14
Office Version
  1. 2007
Platform
  1. Windows
Hi, I would like to thank you for integrating and merging duplicate and non-duplicate row values from sheet 1 to sheet 2.

Example file-01 - Copy.xlsm
ABCDEFGH
1RowNational Code namelast nameUnion nameElection periodtitel Election date
21181-842934-9SasanBahramiTools Unionfirst periodchief1391/03/27
32181-842934-9SasanBahramiTools Unionsecond periodchief1395/02/26
43181-842934-9SasanBahramiTools Unionsecond periodchief1399/02/26
54181-987654-3AmirBahramiElectric Trade UnionThird periodDeputy1395/02/26
65181-987654-4AmirBahramiElectric Trade UnionFourth periodDeputy1400/02/31
Sheet1



Example file-01 - Copy.xlsm
ABCDEFGHIJKLMN
1RowNational CodeNameLast nameUnion namefirst periodsecond periodThird periodFourth periodNumber of periods of participation in elections
2titelElection DatetitelElection DatetitelElection DatetitelElection Date
31181-842934-9SasanBahramiTools Unionchief1391/03/27chief1395/02/26chief1399/02/26003
42181-987654-3AmirBahramiElectric Trade Union0000Deputy1395/02/26Deputy1400/02/312
Sheet2
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top