Copy paste usedrange data and delete duplicate rows

Ravi321

New Member
Joined
Jul 9, 2013
Messages
5
Hi friends,

I need your help, below are the things which i am trying for my code to perform.

• Copy data from range B5:F13 (range will not be fixed)
• Go to sheet “Archive” paste copied range as value from cell A3
• Delete duplicate rows from sheet “Archive” (Like in the sample file last two rows are duplicate so they should get deleted) may be concatenation formula be used for it
• After a month again some new data can be manually added in sheet “Master” below the existing data. So next time when the same VBA code is executed then the whole copied data from “Master” sheet should be copied and pasted in sheet “Archive” below the data which is present earlier. After that again the VBA code should search for the duplicate rows from the entire data and delete it

Link for sample data file
https://www.dropbox.com/s/xfp2aw5wxan6scf/Sample data.xlsm
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
See data and formula in G5andH5 formulas copied down. sort according to col H and delete rows manually

Master

*BCDEFGH
4NameCountryAgeSexSalary**
5abcIndia23Male46000abcIndia23Male46000*
6defSri Lanka24Male48000defSri Lanka24Male48000*
7ghfUK26Female52000gh***26Female52000*
8klmUK20Male40000klmUK20Male40000*
9opqUSA28Female56000opqUSA28Female56000*
10xyzAfrica31Female62000xyzAfrica31Female62000*
11shfSingapore24Male48000shfSingapore24Male48000*
12ghfUK26Female52000gh***26Female52000delete
13klmUK20Male40000klmUK20Male40000delete

<tbody>
</tbody>

Spreadsheet Formulas
CellFormula
G5=CONCATENATE(B5,C5,D5,E5,F5)
H6=IF((COUNTIF($G$5:G6,G6))>1,"delete","")

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,086
Members
449,206
Latest member
ralemanygarcia

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