Add a new rows in Different Tab based on cell value

Hopy

New Member
Joined
Aug 4, 2022
Messages
8
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2013
  6. 2011
  7. 2010
Platform
  1. Windows
  2. Mobile
  3. Web
Hi All

I need to add new rows with data from "Sheet 8" to "Sheet 1", "Sheet 2" and "Sheet 3", based on the column A cell value of "Sheet 8".
If the cell value is matched with the tab name, e.g. Sheet 1, then the whole row (from A to G) of content will be copied to the worksheet "Sheet 1" and nowhere else, from next empty row as there is a existing data in all worksheets. Repeats for each value in column A.


The number of rows in "Sheet 8" is known and set by cell W1 value.
A prevision solution wasn't works as mine description was wrong.


In this solution, whole data from Sheet 8 was copied in all tabs that listed in array except matched A row tabs names, on match data was correctly copied only rows that matched.
Please see images - in Sheet2 what who was in Array but doesn't matched A row values, was copied whole data from Sheet8
 

Attachments

  • Capture4.PNG
    Capture4.PNG
    21 KB · Views: 12
  • Capture3.PNG
    Capture3.PNG
    19.4 KB · Views: 12
  • Capture2.PNG
    Capture2.PNG
    21.3 KB · Views: 11
  • Capture1.PNG
    Capture1.PNG
    21.3 KB · Views: 12

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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