Copy one cell to next cell in new sheet based on another cell

kingdomb

New Member
Joined
May 17, 2011
Messages
16
I need a Macro to copy/paste data from one cell into the next cell in new sheet based on a different cell in the origional sheet.
Sheet 1, Column A has a list of names. If Sheet1, B2 has value="5" then I want to copy sheet1,A2 and paste it into sheet2, Column A next available cell. Note there may be many rows where column B is =5 so I want to be able to run a macro that will do all of them at once. I hope to have a list of "A" values on sheet2 where "B" was equal to 5.
Sorry if this doesn't make sense.
 
That's it. It doesn't look easy but it looks so simple after all the convoluted attempts I made. Thanks again.
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,224,586
Messages
6,179,718
Members
452,939
Latest member
WCrawford

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