mainstreet14534
New Member
- Joined
- Sep 20, 2003
- Messages
- 2
Howdy - First Post.
I have a need for a function or formula to determine if a date should have Daylight Saving Time (DST) applied. (e.g., Test(11/DD/YYYY)=Yes or =1)
I understand the 'rules to be': for areas of the country who observe DST, DST occurs between the 4th Sunday in October to the 4th Sunday in the following April. (The time switch occurs at 2 AM.)
I can obviously determine the applicable month ranges
(e.g., =IF((MONTH(A143)>=10)+(MONTH(A143)<=4),"DST month","")
For me the tricky part has been determining the applicable period corressponding to the 4th Sunday so that I can combine the tests.
I can determine what is the 4th Sunday (a date each month). However, I haven't determined when a month's date is >= the 4th Sunday.
I might be dense, but 'am having trouble.
Any ideas anyone?
Thanks!
BTW - Just bought Mr. Excel on Excel. I'm fairly adept, but it is still worth the investment!
I have a need for a function or formula to determine if a date should have Daylight Saving Time (DST) applied. (e.g., Test(11/DD/YYYY)=Yes or =1)
I understand the 'rules to be': for areas of the country who observe DST, DST occurs between the 4th Sunday in October to the 4th Sunday in the following April. (The time switch occurs at 2 AM.)
I can obviously determine the applicable month ranges
(e.g., =IF((MONTH(A143)>=10)+(MONTH(A143)<=4),"DST month","")
For me the tricky part has been determining the applicable period corressponding to the 4th Sunday so that I can combine the tests.
I can determine what is the 4th Sunday (a date each month). However, I haven't determined when a month's date is >= the 4th Sunday.
I might be dense, but 'am having trouble.
Any ideas anyone?
Thanks!
BTW - Just bought Mr. Excel on Excel. I'm fairly adept, but it is still worth the investment!