Clear Info after 7 days

Elengil

New Member
Joined
Feb 7, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Having trouble with a task for work. They've asked for a simple spreadsheet that clears all data in cells D4-Z40 after 7 days so they can fill in a blank one for the following week and track maintenance jobs? Probably be a VBA thing needed to do it as I can't figure out or find a formula to help barring a rule that sets them blank which isn't really a fix???

1707306339757.png
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Not sure I completely follow. I think you want to clear cells that have data entries but there are no formulas in them. Could use vba for sure. Could also just select D40 and in the address box, add :Z40 to it and hit enter. That will select that range. Then press delete. If you want it to happen automagically based on Today() vs some date, then might need a helper cell with that date (e.g.B1). Or you could just take action if B4 contains a date that is 7 days ago or greater. Seems kind of dangerous to let the system do that automatically. Imagine opening wb Monday morning to enter Friday afternoon data only to find it's all gone whether you wanted that or not.
 
Upvote 0

Forum statistics

Threads
1,215,097
Messages
6,123,076
Members
449,094
Latest member
mystic19

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