Hello everyone.
I have an excel file that contains two sheets (Sheet 1 and Sheet 2)
- Sheet 1 contains the following data in A1 below:
specs:HDD=WD, Fan=CM, GFX=Leadtek, Mouse=Logitech
specs:HDD=Seagate, Fan=Shark, GFX=Nvidia, Mouse=Hp
specs:HDD=WD, Fan=Bay, GFX=Leadtek, Mouse=Microsoft
specs:HDD=WD, Fan=CM,GFX=Nvidia, Mouse=Dell
specs:HDD=Seagate, Fan= Bay, GFX=Asus, Mouse=Hp
I would like to use a macro to move the cells from A1 into Sheet2 if any of the following keywords match the below:
HDD=WD
GFX=Leadtek
Is it possible to have the following data below in Sheet2?
specs:HDD=WD, Fan=CM, GFX=Leadtek, Mouse=Logitech
specs:HDD=WD, Fan=Bay, GFX=Leadtek, Mouse=Microsoft
specs:HDD=WD, Fan=CM, GFX=Nvidia, Mouse=Dell
I've tried using Application.Match but it only works if I am passing a single keyword like Application.Match("HDD=WD", Range("Sheet1!$A$1"), 0). How would I be able to either match "HDD=WD" and/or "GFX=Leadtek" and then move the cell to Sheet2? I may be doing this the wrong way and am open to any suggestions, thanks in advance!
I have an excel file that contains two sheets (Sheet 1 and Sheet 2)
- Sheet 1 contains the following data in A1 below:
specs:HDD=WD, Fan=CM, GFX=Leadtek, Mouse=Logitech
specs:HDD=Seagate, Fan=Shark, GFX=Nvidia, Mouse=Hp
specs:HDD=WD, Fan=Bay, GFX=Leadtek, Mouse=Microsoft
specs:HDD=WD, Fan=CM,GFX=Nvidia, Mouse=Dell
specs:HDD=Seagate, Fan= Bay, GFX=Asus, Mouse=Hp
I would like to use a macro to move the cells from A1 into Sheet2 if any of the following keywords match the below:
HDD=WD
GFX=Leadtek
Is it possible to have the following data below in Sheet2?
specs:HDD=WD, Fan=CM, GFX=Leadtek, Mouse=Logitech
specs:HDD=WD, Fan=Bay, GFX=Leadtek, Mouse=Microsoft
specs:HDD=WD, Fan=CM, GFX=Nvidia, Mouse=Dell
I've tried using Application.Match but it only works if I am passing a single keyword like Application.Match("HDD=WD", Range("Sheet1!$A$1"), 0). How would I be able to either match "HDD=WD" and/or "GFX=Leadtek" and then move the cell to Sheet2? I may be doing this the wrong way and am open to any suggestions, thanks in advance!