Nirbhay Sharma
New Member
Hi Forum
I am trying to create a macro for checking whether a service request date is within the turnaround period of 3 days. the problem statement is:
If day is Monday/Tuesday; then the date difference between today and the request date should be less than or equal to 5 days.
For other days; the date difference between today and request date should be less than or equal to 3 days.
To do this i am trying to do the following:
1) check if the date difference lies between the dates in column D and today is as per the problem statement and accordingly put values true/false in column E
2) transfer all the FALSE values to sheet 2
I am using the formula DATEDIFF to get the date difference. I have also uploaded a sample file for you guys. Can you help me out with this.
I am trying to create a macro for checking whether a service request date is within the turnaround period of 3 days. the problem statement is:
If day is Monday/Tuesday; then the date difference between today and the request date should be less than or equal to 5 days.
For other days; the date difference between today and request date should be less than or equal to 3 days.
To do this i am trying to do the following:
1) check if the date difference lies between the dates in column D and today is as per the problem statement and accordingly put values true/false in column E
2) transfer all the FALSE values to sheet 2
I am using the formula DATEDIFF to get the date difference. I have also uploaded a sample file for you guys. Can you help me out with this.