Hi, I have to copy rows from one sheet to other in a same excel file. It's a repetitive task to be conducted on weekly basis. Consider following example.
I have to copy rows containing any value except "NA" or 'Blank' in column "code" from one sheet to another.
All values in column "code" are unique & will never repeat except 'NA' value & blank space.
How do I use filter to select non-repeating values, without using below mentioned code snippet.
Above code snippet will be useless for repetitive use as values are non-repeating.
Also, on side note,
How to deal with blanks? (for both cases i.e., inclusion & exclusion)
Thanks in advance.....
Name | Devices | code |
---|---|---|
A | Desktop | 234 |
B | Laptop | 2345 |
C | Television | 3456 |
D | Smartphone | 7654 |
E | Printer | NA |
F | Desktop | 098 |
G | Scanner | NA |
H | Laptop | 65 |
I | Smartphone | 876 |
J | Laptop | 345 |
K | ||
L | Television | 3456 |
M | NA | NA |
N | Laptop | 1234 |
O | Desktop | 8797 |
I have to copy rows containing any value except "NA" or 'Blank' in column "code" from one sheet to another.
All values in column "code" are unique & will never repeat except 'NA' value & blank space.
How do I use filter to select non-repeating values, without using below mentioned code snippet.
VBA Code:
Selection.AutoFilter
ActiveSheet.Range("$A$1:$C$16").AutoFilter Field:=3, Criteria1:=Array("____", "____", "____", "____", ~~& so on~~), Operator:=xlFilterValues
Above code snippet will be useless for repetitive use as values are non-repeating.
Also, on side note,
How to deal with blanks? (for both cases i.e., inclusion & exclusion)
Thanks in advance.....