If you have your year (2003) in A1 and your month number (12) in A2:
First Friday:
=DATE(A1,A2,8)-WEEKDAY(DATE(A1,A2,2))
Saludos,
Daniel M.
"Humberto Perez" <hum....@gte.net> wrote in message
news:eNJm8Yzv...@TK2MSFTNGP11.phx.gbl...
"Daniel.M" <prenom...@bigfoot.inutil.com> wrote in message
news:OTq0ubzv...@TK2MSFTNGP09.phx.gbl...
If you have a date in the month in A1, then the first Friday is given by the
formula:
=DATE(YEAR(A1),MONTH(A1),1)+
MOD(13-WEEKDAY(DATE(YEAR(A1),MONTH(A1),1)),7)
--ron
> Gracias Daniel,
> It did work. Can you tell me what the 8 and the 2 in the formula means?
Well it means the 8th and the 2nd day of the month.
Basically, you can think of your question in the following way, the first Friday
of the month is the previous Friday of the 8th day of that month.
The formula for previous Friday of a Day D is
=D-Weekday(D-6)
Previous Friday of 8th of the month is:
=D8th - Weekday(D8th - 6)
=D8th - Weekday(D2nd)
Regards,
Daniel M.
Or (with the same idea as above)
=A1-DAY(A1)+8-WEEKDAY(A1-DAY(A1)+2)
Regards,
Daniel M.
Do you recomend any book to understand functions the way you take advantage
of them?
Humberto
"Daniel.M" <prenom...@bigfoot.inutil.com> wrote in message
news:%23stOvS0...@TK2MSFTNGP10.phx.gbl...
But you should pay close attention to the current newsgroup and its ARCHIVES:
http://groups.google.com/advanced_group_search
Put microsoft.public.excel.worksheet.functions in the Newsgroup category and/or
any other criteria. For example, try it with First Friday Month as keywords
(first field).
Saludos,
Daniel M.
"Humberto Perez" <hum....@gte.net> wrote in message
news:enE4C60v...@tk2msftngp13.phx.gbl...
I like that, too.
--ron
Chris wrote:
> RE: How about in Access; Need a way to return the 1st Wednesday of
> each Month? And to do it automatically in an Updatable Query?
In Excel you use day name function. Not sure about Access.