Hi, I need some help with filtering and selecting specific cells with multiple criteria.
I have a table with a list of fruits and their expiry date.
I have tried using VBA to auto-filter the fruit data that are expiring in current month. (xlFilterThisMonth).
However, I only want to select data of apples that are expiring within a month, then copy and paste the selected data to sheet2.
Can anyone help me how to do so?
I have a table with a list of fruits and their expiry date.
I have tried using VBA to auto-filter the fruit data that are expiring in current month. (xlFilterThisMonth).
However, I only want to select data of apples that are expiring within a month, then copy and paste the selected data to sheet2.
Can anyone help me how to do so?
FruitList.xlsm | ||||
---|---|---|---|---|
A | B | |||
1 | Fruit | Expiry Date | ||
2 | Apple | 13/9/2022 | ||
3 | Banana | 15/11/2022 | ||
4 | Apple | 19/10/2022 | ||
5 | Citrus | 28/10/2022 | ||
6 | Banana | 30/9/2022 | ||
7 | Grape | 1/10/2022 | ||
8 | Apple | 11/10/2022 | ||
Sheet1 |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
A2:A8 | List | Apple,Banana,Citrus,Grape |