Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 45
Default Last Friday of the month

I have in cell "A5" the last day of the month (i.e. las month was 08-31-08
and this month will be 09-30-08)
I need a formula in "A6" (that works for every month) that gives me the last
friday of that specific month based on the input on "A5"

Thanks
--
I'm not a looser, I keep trying€¦
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Last Friday of the month

Try

=DATE(YEAR(A1),MONTH(A1)+1,0)+MOD(-WEEKDAY(DATE(YEAR(A1),MONTH(A1)+1,0),2)-2,-7)

With a date in a1

Mike

"Alfredo_CPA" wrote:

I have in cell "A5" the last day of the month (i.e. las month was 08-31-08
and this month will be 09-30-08)
I need a formula in "A6" (that works for every month) that gives me the last
friday of that specific month based on the input on "A5"

Thanks
--
I'm not a looser, I keep trying€¦

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Last Friday of the month

Try this:

=A5+1-WEEKDAY(DATE(YEAR(A$5),MONTH(A$5)+1,1)+1)

--
Biff
Microsoft Excel MVP


"Alfredo_CPA" .(donotspam) wrote in message
...
I have in cell "A5" the last day of the month (i.e. las month was 08-31-08
and this month will be 09-30-08)
I need a formula in "A6" (that works for every month) that gives me the
last
friday of that specific month based on the input on "A5"

Thanks
--
I'm not a looser, I keep trying.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Last Friday of the month

=DATE(YEAR(A5),MONTH(A5)+1,1)- WEEKDAY(DATE(YEAR(A5),MONTH(A5)+1,2))

--


Regards,


Peo Sjoblom

"Alfredo_CPA" .(donotspam) wrote in message
...
I have in cell "A5" the last day of the month (i.e. las month was 08-31-08
and this month will be 09-30-08)
I need a formula in "A6" (that works for every month) that gives me the
last
friday of that specific month based on the input on "A5"

Thanks
--
I'm not a looser, I keep trying.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 45
Default Last Friday of the month

It does the job perfectly

Thanks a lot!!

"Mike H" wrote:

Try

=DATE(YEAR(A1),MONTH(A1)+1,0)+MOD(-WEEKDAY(DATE(YEAR(A1),MONTH(A1)+1,0),2)-2,-7)

With a date in a1

Mike

"Alfredo_CPA" wrote:

I have in cell "A5" the last day of the month (i.e. las month was 08-31-08
and this month will be 09-30-08)
I need a formula in "A6" (that works for every month) that gives me the last
friday of that specific month based on the input on "A5"

Thanks
--
I'm not a looser, I keep trying€¦



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 45
Default Last Friday of the month

Thanks Mr T.
Of all the responses this is the shortest fromula and I personally prefer
that.

Thanks to you Peo as well (all the responses works perfectly)




"T. Valko" wrote:

Try this:

=A5+1-WEEKDAY(DATE(YEAR(A$5),MONTH(A$5)+1,1)+1)

--
Biff
Microsoft Excel MVP


"Alfredo_CPA" .(donotspam) wrote in message
...
I have in cell "A5" the last day of the month (i.e. las month was 08-31-08
and this month will be 09-30-08)
I need a formula in "A6" (that works for every month) that gives me the
last
friday of that specific month based on the input on "A5"

Thanks
--
I'm not a looser, I keep trying.




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Last Friday of the month

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Alfredo_CPA" .(donotspam) wrote in message
...
Thanks Mr T.
Of all the responses this is the shortest fromula and I personally prefer
that.

Thanks to you Peo as well (all the responses works perfectly)




"T. Valko" wrote:

Try this:

=A5+1-WEEKDAY(DATE(YEAR(A$5),MONTH(A$5)+1,1)+1)

--
Biff
Microsoft Excel MVP


"Alfredo_CPA" .(donotspam) wrote in message
...
I have in cell "A5" the last day of the month (i.e. las month was
08-31-08
and this month will be 09-30-08)
I need a formula in "A6" (that works for every month) that gives me the
last
friday of that specific month based on the input on "A5"

Thanks
--
I'm not a looser, I keep trying.






  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Last Friday of the month

=A5+1-WEEKDAY(DATE(YEAR(A5),MONTH(A5)+1,1)+1)

We can reduce that further to:

=A5+1-WEEKDAY(A5+2)

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this:

=A5+1-WEEKDAY(DATE(YEAR(A$5),MONTH(A$5)+1,1)+1)

--
Biff
Microsoft Excel MVP


"Alfredo_CPA" .(donotspam) wrote in message
...
I have in cell "A5" the last day of the month (i.e. las month was 08-31-08
and this month will be 09-30-08)
I need a formula in "A6" (that works for every month) that gives me the
last
friday of that specific month based on the input on "A5"

Thanks
--
I'm not a looser, I keep trying.





  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Last Friday of the month

Hi Biff,

What about
=A5-MOD(A5+1,7)
?

Regards,
Bernd
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Last Friday of the month

Even better.

I don't think we'll get it any more compact than that!

--
Biff
Microsoft Excel MVP


"Bernd P" wrote in message
...
Hi Biff,

What about
=A5-MOD(A5+1,7)
?

Regards,
Bernd



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
3rd Friday every month Zsolt Szabó Excel Discussion (Misc queries) 18 January 15th 07 04:07 AM
How do I get the date for the 2nd friday of each month? dustin Excel Worksheet Functions 8 November 8th 06 10:46 PM
Friday In Month Winston New Users to Excel 4 October 27th 05 10:00 PM
Find out first Friday every month Ragdyer Excel Discussion (Misc queries) 7 September 2nd 05 12:59 AM
3rd friday in month [email protected] Excel Worksheet Functions 17 June 11th 05 08:47 PM


All times are GMT +1. The time now is 11:10 PM.

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"