j844929
Active Member
- Joined
- Aug 18, 2002
- Messages
- 423
Hi,
I have a worksheet where date cells are formatted as DD/MM/YYYY HH:MM:SS
What I'm trying to do is the following:
Cell A1 shows the date and time a trade took place.
Cell B1 shows the date that the trade starts (Formatted to midnight)
If the date in B1 is one day after the date in A1, but the time displayed in A1 is before 6pm then the target cell should show "0.1"
If the date in B1 is one day after that which is in cell A1, but the time displayed in A1 is after 6pm, then the value in the target cell should be "0.2"
If the date in B1 is significantly after the date in A1, then the target cell should show "0.1"
If the date in cell B1 is the same as the date in A1, then the target cell should show "0.2"
I hope this makes sense... I'd appreciate any suggestions on how to go about this... Any questions for clarification, let me know.
Tim
I have a worksheet where date cells are formatted as DD/MM/YYYY HH:MM:SS
What I'm trying to do is the following:
Cell A1 shows the date and time a trade took place.
Cell B1 shows the date that the trade starts (Formatted to midnight)
If the date in B1 is one day after the date in A1, but the time displayed in A1 is before 6pm then the target cell should show "0.1"
If the date in B1 is one day after that which is in cell A1, but the time displayed in A1 is after 6pm, then the value in the target cell should be "0.2"
If the date in B1 is significantly after the date in A1, then the target cell should show "0.1"
If the date in cell B1 is the same as the date in A1, then the target cell should show "0.2"
I hope this makes sense... I'd appreciate any suggestions on how to go about this... Any questions for clarification, let me know.
Tim