find duplicates and copy row

Melrose0507

New Member
Joined
Jul 19, 2011
Messages
22
I have a spreadsheet with a lot of different data. In columns AR:AX which indicates days of the week there is either a "Y" or "N". I want to do a couple of steps.
1. identify lines that have more than one Y.
2. copy entire line to end of sheet.
3. In new line, change the first Y to N leaving remaining Ys alone.
4. Go back to the row below the line just copied from and continue to look.

I do not need to delete any Y's on original lines as other formulas will only look for the first Y in the row.

I am looking for a macro to do this. I am having troubling researching the correct formulas. Any assistance is greatly appreciated.

Thanks in advance.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,224,521
Messages
6,179,275
Members
452,902
Latest member
Knuddeluff

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