Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Copy row based on value of a cell

$
0
0

I need a macro that will let me copy a row of data from one worksheet to another based on the value in one of the cells.

My source worksheet looks like the following

 ABC
1AppleTreeRed
2GrapeVineRed
3OrangeTreeOrange

I want to select only rows with the word tree in Column B and past the row into a new worksheet.  The new work sheet should look like the following.  I can't have blank rows for those that are skipped.  My original file has 100k rows so I don't want to have any blank rows in the new file.

 

 ABC
1AppleTreeRed
2OrangeTreeOrange


jmk


Viewing all articles
Browse latest Browse all 11829

Trending Articles