Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jeremy
 
Posts: n/a
Default Another Friday Question

I feel like a dork for not being able to figure out this day of the week
question with so many examples out there, but hey...

Suppose I input a month and a year, how do I find out what date the 3rd
Friday is?
Example: Input: Cell A1 March and Cell B1 2005. Output: Cell C1 3/18/2005

As a follow on, I'd like to figure out how much time in work hours there are
between now (assuming using the now function) and the end of the 3rd Friday.
Will this exclude holidays?

Thanks in advance...
Jeremy
  #2   Report Post  
Daniel.M
 
Posts: n/a
Default

Hi,

Better to put 3 in A1 (instead of the "March" string) or use a lookup to derive
the month number (or 1-12)

Then, for the 3rd Friday:
=DATE(B1,A1,22)-WEEKDAY(DATE(B1,A1,2))

The 3rd Friday of a month is always the Friday before the 22nd of that month.

The general formula to find the Nth DOW of a month is (DOW== 1 for Sun, 2 for
Mon, ..., 7 for Saturday):

=DATE(YYYY,MM,1+N*7)-WEEKDAY(DATE(YYYY,MM,8-DOW))

Regards,

Daniel M.


"Jeremy" wrote in message
...
I feel like a dork for not being able to figure out this day of the week
question with so many examples out there, but hey...

Suppose I input a month and a year, how do I find out what date the 3rd
Friday is?
Example: Input: Cell A1 March and Cell B1 2005. Output: Cell C1 3/18/2005

As a follow on, I'd like to figure out how much time in work hours there are
between now (assuming using the now function) and the end of the 3rd Friday.
Will this exclude holidays?

Thanks in advance...
Jeremy



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

And the number of hours would be

=NETWORKDAYS(TODAY(),DATE(B1,A1,22)-WEEKDAY(DATE(B1,A1,2)),holidays)*8

where holidays is alist of holidays, assuming 8 hour days, and dates
inclusive.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Daniel.M" wrote in message
...
Hi,

Better to put 3 in A1 (instead of the "March" string) or use a lookup to

derive
the month number (or 1-12)

Then, for the 3rd Friday:
=DATE(B1,A1,22)-WEEKDAY(DATE(B1,A1,2))

The 3rd Friday of a month is always the Friday before the 22nd of that

month.

The general formula to find the Nth DOW of a month is (DOW== 1 for Sun, 2

for
Mon, ..., 7 for Saturday):

=DATE(YYYY,MM,1+N*7)-WEEKDAY(DATE(YYYY,MM,8-DOW))

Regards,

Daniel M.


"Jeremy" wrote in message
...
I feel like a dork for not being able to figure out this day of the week
question with so many examples out there, but hey...

Suppose I input a month and a year, how do I find out what date the 3rd
Friday is?
Example: Input: Cell A1 March and Cell B1 2005. Output: Cell C1

3/18/2005

As a follow on, I'd like to figure out how much time in work hours there

are
between now (assuming using the now function) and the end of the 3rd

Friday.
Will this exclude holidays?

Thanks in advance...
Jeremy





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about combining data from multiple workbooks into one rep BookOpenandUpright Excel Discussion (Misc queries) 2 February 19th 05 12:37 PM
Finding Friday Arlen Excel Discussion (Misc queries) 1 January 23rd 05 05:08 AM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM
Formula Question...PLEASE PLEASE help! Anant Excel Worksheet Functions 3 January 16th 05 01:48 PM
COUNTIF Question zbert Excel Worksheet Functions 1 November 1st 04 01:59 AM


All times are GMT +1. The time now is 06:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"