in need of a macro for a complex task

Tonyk1051

Board Regular
Joined
Feb 1, 2021
Messages
132
Office Version
  1. 2019
Platform
  1. Windows
Delete row 1 in sheet 1
Highlight column H and insert 2 new columns (do the same for sheet 2)
Highlight column X and insert 1 new column (do the same for sheet 2)

Highlight all of sheet 2 apply data filter

On column G
click select all, check boxes that have Manufacture, Working but missing parts,
tested confirmed defective, tested confirmed damage, picture of defect done

all the data that is found, cut and move to sheet 1

Now on sheet 1

highlight all of it and apply data filter
go to coulmn L and search for TT
all the data that it pulls delete entire row
now search for tv
all the data that it pulls delete entire row
unfilter sheet 1


instructions are always the same but data amount is always
different sometime less some times more, is this something a Macro can do?

1613264283654.png
 
You're welcome.
Fluff, i got another one. i dont have excel in my computer so i have to use in drop box sample1.xlsm

but i need a code that does these instructions, hope you can help, thanks

If coulmn S is yes

and column W says open box put in column H used, if coulmn W says

defective /unspecified or damaged then put in coulmn H

LR if value in column O is $20 or less, put Tradeport if value is between $20-$50

or put TL if value is over $50 BUT if column N has key word "cell phone" or "notebook" put in TT
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
As this is a totally different question, you need to start a new thread. Thanks
 
Upvote 0
As this is a totally different question, you need to start a new thread. Thanks
 
Upvote 0
Hi,

Back again, below is the original code

Range("A1", .Range("AL" & .Rows.Count).End(xlUp)).AutoFilter Field:=12, Criteria1:="=*TT*", Operator:=xlOr, Criteria2:="=*TV*"


Below is the updated version since i have a 3rd critieria to add but i keep on getting an error any idea what it should look like to make it work? i mean it looks right to me..

[Range("A1", .Range("AL" & .Rows.Count).End(xlUp)).AutoFilter Field:=12, Criteria1:="=*TT*", Operator:=xlOr, Criteria2:="=*TV*", Operator:=xlOr, Criteria3:="=*P*" code/]
 
Upvote 0
You can only have more than 2 criteria when doing an exact match.
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,478
Members
448,967
Latest member
visheshkotha

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