Copy entire row to a new row based on cell value, plus updated certain data in specific columns

TMG738

New Member
Joined
Jun 19, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet for compliance matters and would like to copy data into a new row based on cell value.

I would like to copy the row to a new row and change the Y/E date and Target Date to plus one year (so Y/E 31/12/2020 would change to Y/E 31/12/2021 and target date would change from 30/09/2021 to 30/09/2022 in the new row). At the same time keeping the data in the orginal row.

I have used VBA to move to another sheets, however it would be best to keep on one sheet.

I attach PNG of my excel file.

Thanks
 

Attachments

  • Portfolio test.PNG
    Portfolio test.PNG
    81.3 KB · Views: 5

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Saurabhj

Active Member
Joined
Jun 6, 2020
Messages
414
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi, Would you like to make a copy of all available rows ? Is there any criteria which rows we have to copy if multiple rows are available ?
 

TMG738

New Member
Joined
Jun 19, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi, Would you like to make a copy of all available rows ? Is there any criteria which rows we have to copy if multiple rows are available ?
I would like to copy the entire row (one at a time) when critieria is meet and enter in a cell in a particular column, so for example column with the heading "Completed Y/N". If Y is entered into the cell the entire row is copied to the bottom and target date and Y/E date have 1 year added to them.

Thank you
 

Watch MrExcel Video

Forum statistics

Threads
1,129,803
Messages
5,638,444
Members
417,025
Latest member
MusterDuster

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
Top