VBA Find 1st empty cell and paste data from another cell based on contents

Drivium

New Member
Joined
Nov 4, 2011
Messages
28
I have an excel spreadsheet with 2 tabs. One is Opportunities and one is Last Planner.

On the opportunities tab I have a column called Status and a column called Opportunity. Example:

(A1)............... (B1)
Opportunity | Status
-------------------------------------------------
Compare Life | Moved to last planner

My last planner tab has a column called Project and a column called Opportunity. Example:

(A1)................. (B1)
Project...... | Opportunity
-------------------------------------------------
Project #1 |
Project #2 |
Project #3 |

If someone selects "moved to last planner" on the "Opportunities" tab from the "Status" column drop down list, I want the opportunity in that row to copy over to the last planner tab in the first available Project # row. By availble, I mean, a project that was not already assigned to another opportunity.


Hope this makes sense. TIA​
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,203,535
Messages
6,055,964
Members
444,839
Latest member
laurajames

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