Hello everyone,
Just seeking some VBA help in solving this problem.
I am currently building a database which has a formula which evaluates in e.g. range D1:D4 if the item is still "Open" or if it is "Closed" based on certain criteria in the corresponding row.
e.g. in each cell in range in column D I have the following formula =IF(AND($A1="Closed",$B1="Closed"),"Closed","Open")
How can I update the adjacent cell in column E with the datestamp when the above formula in the cell in column D evaluates "Closed". Any ideas/ help would be appreciated.
Requirements:
1. When formula in column D evaluates "Closed" adjacent cell in column E is updated with current datestamp.
2. When formula in column D evaluates "Open" adjacent cell in column E is cleared if not already blank
3. When formula in column D cannot evaluate "Closed" or "Open" for whatever reason e.g. formula is deleted) adjacent cell in column E is cleared if not already blank
I have previously used a VBA Worksheet_Change event for other similar problems and this works fine if the data in column D is directly entered/pasted in cell but this won't work if the data in column D is based on formula calculation or if the datestamp should be updated only for specific text value. See code below:
Bookmarks