Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Biff,
What about =A5-MOD(A5+1,7) ? Regards, Bernd |
#10
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
3rd Friday every month | Excel Discussion (Misc queries) | |||
How do I get the date for the 2nd friday of each month? | Excel Worksheet Functions | |||
Friday In Month | New Users to Excel | |||
Find out first Friday every month | Excel Discussion (Misc queries) | |||
3rd friday in month | Excel Worksheet Functions |