Hi, I have to copy rows from one sheet to other in a same excel file. It's a repetitive task. Consider following example.
I want to filter "Devices". Unselect "Select All", Select "Printer" & "Scanner". copy the rows. paste it in another sheet.
But sometimes "Scanner" may not even be present in "Devices" column. In that scenario, I want to copy rows containing "Printer" & paste.
I need a same code that will work in both scenarios.
Name | Devices | code |
---|---|---|
A | Desktop | 234 |
B | Laptop | 2345 |
C | Laptop | 3456 |
D | Smartphone | 7654 |
E | Printer | 3456 |
F | Desktop | 098 |
G | Scanner | 123 |
H | Laptop | 65 |
I | Smartphone | 876 |
J | Laptop | 345 |
I want to filter "Devices". Unselect "Select All", Select "Printer" & "Scanner". copy the rows. paste it in another sheet.
But sometimes "Scanner" may not even be present in "Devices" column. In that scenario, I want to copy rows containing "Printer" & paste.
I need a same code that will work in both scenarios.