Anonnymouse
New Member
- Joined
- Jun 28, 2023
- Messages
- 27
- Office Version
- 365
- Platform
- Windows
Hello,
I was wondering if its possible to create a macro that deletes cells based on date.
For example I would like it to delete cell d3 and e3 since it has been longer than a year and also would like to delete column f4 and g4 and also h4 and i4.
When its deleted is there a way to make it so it doesn't shift the cells in column k,l, and M since they have formulas and it would then break the formulas.
I was wondering if its possible to create a macro that deletes cells based on date.
For example I would like it to delete cell d3 and e3 since it has been longer than a year and also would like to delete column f4 and g4 and also h4 and i4.
When its deleted is there a way to make it so it doesn't shift the cells in column k,l, and M since they have formulas and it would then break the formulas.
A | B | C | D | E | F | G | H | I | J | K | L | M |
1 | ||||||||||||
2 | Number of times | Tom | Michael | Tim | ||||||||
3 | Tom | 6/4/2023 | Michael | 8/1/2024 | Tim | 9/1/2023 | 1 | 1 | 1 | |||
4 | Michael | 4/1/2024 | Michael | 1/2/2023 | Tom | 1/1/2023 | 1 | 2 | 0 | |||
5 | Tim | 4/6/2024 | Tim | 4/6/2024 | Michael | 4/6/2024 | 0 | 1 | 2 | |||
6 |