sassriverrat
Well-known Member
- Joined
- Oct 4, 2018
- Messages
- 655
Good Afternoon,
I'm having an issue- I think I've coded "AND" wrong.
Right now, with today's date and time, the sheet is kicking a "No" when it should be "Yes" and changing the computer date to December (to see if it says "Yes") doesn't change away from "No" so I figure my use of "AND" was wrong. Thanks for the help!
This is designed to provide a "Yes" or a "No" to state if daylight savings is in effect or not.
Notes!L13 is the date of daylight savings start (March 10, 2019)
Notes!M13 is 2:00 AM
Notes!L14 is the date of daylight savings end (November 3, 2019)
Notes!M14 is 2:00 AM
C5 is today's date
D5 is the current time
The cells in Notes automatically update annually.
I'm having an issue- I think I've coded "AND" wrong.
Right now, with today's date and time, the sheet is kicking a "No" when it should be "Yes" and changing the computer date to December (to see if it says "Yes") doesn't change away from "No" so I figure my use of "AND" was wrong. Thanks for the help!
This is designed to provide a "Yes" or a "No" to state if daylight savings is in effect or not.
Notes!L13 is the date of daylight savings start (March 10, 2019)
Notes!M13 is 2:00 AM
Notes!L14 is the date of daylight savings end (November 3, 2019)
Notes!M14 is 2:00 AM
C5 is today's date
D5 is the current time
The cells in Notes automatically update annually.
Code:
=IF(AND((NOTES!L13+NOTES!M13)<((C5+D5)),(NOTES!L14+NOTES!M14)>((C5+D5))),"YES","NO")[\code]