Hi
I have this input file (please see below picture and attachment)
I have this code:
Alternatively could this be done when the difference between 2 dates is <2 days to delete the entire above row where the difference occurs?Please Login or Register to view this content.
Below is the Input, the Yellow cells (the above cells where the difference between 2 dates is <2 days) are expected to be deleted because the Red cells indicate a difference <2 days between 2 dates
Input.JPG
Output of the code (please see below) is a bit faulty as it adds "delete this" on both rows where the date difference is <2 days. It should "delete this" just on the top row where the difference occurs.
Output.JPG
I added the "delete this" instead of blank value just for the sake of being more visible.
Alternatively, the whole top row where the difference occurs could be deleted if it would be easier.
Many thanks in advance.
All the best,
Gordon
Bookmarks