Insert Rows in Worksheet depending on Duplicate Entries in Another Worksheet

jimmynora

New Member
Joined
Oct 20, 2010
Messages
27
Hi,

I need to Insert Rows in a worksheet (sheet2) depending on the the number of times a value is duplicated in another worksheet(sheet1).

(Uploaded Pics)

This is what I want the Macro to do :
-> Count the number of time a value has been duplicated in Sheet 1 Column C .
-> Insert the number of rows (No. of Duplicate Entries - 1) in Sheet2 below the same value found in Column A Sheet2.
-> Copy and Paste the data into the newly rows from the original one above (Sheet2).

PS: The macro could also just 'insert copied cells' below the original row in sheet2 based on the number of times (minus 1) that the same value was duplicated in sheet1.

NOTE: The values in Sheet1 Column C are the same as Column A Sheet 2.

I appreciate your help.

Cheers,
JN



Uploaded with ImageShack.us


Uploaded with ImageShack.us


Uploaded with ImageShack.us
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,215,770
Messages
6,126,794
Members
449,337
Latest member
BBV123

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