vba code to copy and paste data if two cell match

Shazy610

New Member
Joined
Apr 19, 2022
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I have an Excel 2016 Workbook that contains a Worksheet (Tracker). Within the Tracker Worksheet, I have a table that spans from B12:Q. Column B is the Action# and Column M is the ActionResponse. When Columns B & M match then the content contained in columns N thru Q is a response to the Action# in Column B. So, when columns B & M match I need columns C thru L to automatically copy the original action information to the new row(s).

I’ve included the sample data set below for clarification. In the example below, Columns B & M values match in rows 1, 4, & 6 but the original action data is only contained in the first Column B entry.



BCDEFGHIJKLMNOPQ
1XYYYYZZZZAAAABBBBCCC1SSTTUUVV
22
33
1111223344
44
11A7B8C9D1


In would like to have Rows 1, 4, & 6 all contain the same data for Columns C thru L while Columns N thru Q remain unique as shown in the example data set below.

Is there vba logic than I can use to accomplish this task?



BCDEFGHIJKLMNOPQ
1XYYYYZZZZAAAABBBBCCC1SSTTUUVV
22
33
1XYYYYZZZZAAAABBBBCCC111223344
44
1XYYYYZZZZAAAABBBBCCC1A7B8C9D1


Any and all help is greatly appreciated!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,214,551
Messages
6,120,156
Members
448,948
Latest member
spamiki

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