Hello,
I know how to use a formula such as =IF(RIGHT(C1,1)="a",TRUE,FALSE), but how do I go about incorporating that into VBA?
I'm trying to look at column D, a cell value that doesn't end with an "a" or "b" should be deleted. BTW, my data varies, and so I use LR quite a bit as can't assume the last row is always going to be the same.
The result would look like -
Thank you
I know how to use a formula such as =IF(RIGHT(C1,1)="a",TRUE,FALSE), but how do I go about incorporating that into VBA?
I'm trying to look at column D, a cell value that doesn't end with an "a" or "b" should be deleted. BTW, my data varies, and so I use LR quite a bit as can't assume the last row is always going to be the same.
Has_Has_Not_Taken_Report_04282022.xlsx.xls | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | 619155M5B | ASE | 87 | 87 | ASE | ||
2 | 619155M6B | ASE | 82 | 82a | |||
3 | 619155M7B | ASE | 83 | 83a | |||
4 | 619156B | ASE | 80 | 80 | |||
5 | 619158B | ASE | 84 | 84a | |||
6 | VCIWB01SSFIA22 | ASE | 82 | 82b | |||
7 | ASE | 83 | 83b | ||||
8 | ASE | 84 | 84b | ||||
Working |
The result would look like -
Has_Has_Not_Taken_Report_04282022.xlsx.xls | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | 619155M5B | ASE | 87 | ASE | |||
2 | 619155M6B | ASE | 82 | 82a | |||
3 | 619155M7B | ASE | 83 | 83a | |||
4 | 619156B | ASE | 80 | ||||
5 | 619158B | ASE | 84 | 84a | |||
6 | VCIWB01SSFIA22 | ASE | 82 | 82b | |||
7 | ASE | 83 | 83b | ||||
8 | ASE | 84 | 84b | ||||
Working |
Thank you