I am looking for a way to change a cell color based on the last time it was edited/changed.

swoosh

New Member
Joined
Mar 22, 2023
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
Been searching around here but haven't found exactly what i am looking for. I have one column on one sheet, where I'd like the color to be green if that cell was changed or updated today, if it has been a few days since the last change maybe a slightly darker green and more than a week lets say red. (colors are irrelevant, just some way to signal that time has passed since the last update.) and then if no information is entered the cell should remain white. This column is updated manually with no other formulas referencing it. Hopefully this makes sense. Thank you!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Off the top of my head: you need a way to date stamp the value from the get-go, then alter the date stamp upon every edit of the cell. To do that over a session (regardless of how long the session is) could probably be handled by code. To do that over sessions (i.e. open/close wb today, open tomorrow) requires that you date stamp a cell somewhere. If that can be done without code then I don't know how. You could then compare the current date to the timestamp with conditional formatting.

To alter the date stamp with code, you'd use the SheetChange event. Simpler if user would never edit the cell but leave it as the same value.
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,243
Members
448,555
Latest member
RobertJones1986

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