A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Find the Date of the Next Friday



 
 
Thread Tools Display Modes
  #1  
Old May 7th, 2009, 02:12 AM posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default Find the Date of the Next Friday

On Sat, 9 May 2009 17:46:13 -0600, "Thomas M."
wrote:

Excel 2007

This is driving me nuts, primarily because I know that I've done this
before, but I just can't seem to zero in on the solution today, and I
haven't been able to find it in my other files. I need a formula that does
the following two things:

1) If the current day is a Friday, put the current date
2) In all other cases put the date of the *next* Friday

I seem to remember that this requires a combination of the DATE(), DAY(),
NOW(), and WEEKDAY() functions. I also seem to remember that the solution
*may* include use of the MOD() function. Anyone have a way to do this?

--Tom



=A1+7-WEEKDAY(A1+1)
--ron
  #3  
Old May 7th, 2009, 05:48 AM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default Find the Date of the Next Friday

The general formula Ron posted is much better (he assumed the date you
wanted to reference was in A1 whereas you are interested in today's date
only); here is his formula restructured for the specific way you want to use
it...

=TODAY()+7-WEEKDAY(TODAY()+1)

--
Rick (MVP - Excel)


"Thomas M." wrote in message
...
I found a formula on the Internet that works.

=TODAY()-WEEKDAY(TODAY())+IF(WEEKDAY(TODAY())6,13,6)

Anyone have a better way of doing this?

--Tom

In article ,
says...
Excel 2007

This is driving me nuts, primarily because I know that I've done this
before, but I just can't seem to zero in on the solution today, and I
haven't been able to find it in my other files. I need a formula that
does
the following two things:

1) If the current day is a Friday, put the current date
2) In all other cases put the date of the *next* Friday

I seem to remember that this requires a combination of the DATE(), DAY(),
NOW(), and WEEKDAY() functions. I also seem to remember that the
solution
*may* include use of the MOD() function. Anyone have a way to do this?

--Tom




  #4  
Old May 7th, 2009, 12:17 PM posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default Find the Date of the Next Friday

On Wed, 6 May 2009 21:50:41 -0600, Thomas M.
wrote:

I found a formula on the Internet that works.

=TODAY()-WEEKDAY(TODAY())+IF(WEEKDAY(TODAY())6,13,6)

Anyone have a better way of doing this?

--Tom


As Rick wrote, merely substitute TODAY() for A1 in the formula I previously
posted.

=A1+7-WEEKDAY(A1+1)

or put TODAY() in A1 or some other cell to be referenced.

The formula I posted can be generalized to:

=A1+7-WEEKDAY(A1+7-DOW)

where DOW is Day Of Week and 1=Sun,2=Mon...6=Fri,7=Sun

--ron
  #5  
Old May 7th, 2009, 02:00 PM posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default Find the Date of the Next Friday

On Thu, 07 May 2009 07:17:31 -0400, Ron Rosenfeld
wrote:

where DOW is Day Of Week and 1=Sun,2=Mon...6=Fri,7=Sun


Obviously, that should have ended ...6=Fri, 7=Sat
--ron
  #6  
Old May 7th, 2009, 07:01 PM posted to microsoft.public.excel.worksheet.functions
Thomas M.
external usenet poster
 
Posts: 130
Default Find the Date of the Next Friday

Wow! My recollection on how to do that was way off! ;-)

Thanks for the help. I've added your formula to my file and it works
perfectly.

--Tom

"Ron Rosenfeld" wrote in message
...
On Wed, 6 May 2009 21:50:41 -0600, Thomas M.
wrote:

I found a formula on the Internet that works.

=TODAY()-WEEKDAY(TODAY())+IF(WEEKDAY(TODAY())6,13,6)

Anyone have a better way of doing this?

--Tom


As Rick wrote, merely substitute TODAY() for A1 in the formula I
previously
posted.

=A1+7-WEEKDAY(A1+1)

or put TODAY() in A1 or some other cell to be referenced.

The formula I posted can be generalized to:

=A1+7-WEEKDAY(A1+7-DOW)

where DOW is Day Of Week and 1=Sun,2=Mon...6=Fri,7=Sun

--ron



  #7  
Old May 7th, 2009, 07:38 PM posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default Find the Date of the Next Friday

On Thu, 7 May 2009 12:01:47 -0600, "Thomas M."
wrote:

Wow! My recollection on how to do that was way off! ;-)

Thanks for the help. I've added your formula to my file and it works
perfectly.

--Tom


Glad to help. Thanks for the feedback.
--ron
  #9  
Old May 9th, 2009, 02:39 PM posted to microsoft.public.excel.worksheet.functions
Dana DeLouis[_3_]
external usenet poster
 
Posts: 184
Default Find the Date of the Next Friday

... I also seem to remember that the solution
*may* include use of the MOD() function.


Hi. You may be thinking of this, where the '6 represents your "Friday"

=A1+MOD(6-WEEKDAY(A1),7)

If the question was about Thursday, change '6 to '5.
= = = =
Dana DeLouis



Thomas M. wrote:
Wow! My recollection on how to do that was way off! ;-)

Thanks for the help. I've added your formula to my file and it works
perfectly.

--Tom

"Ron Rosenfeld" wrote in message
...
On Wed, 6 May 2009 21:50:41 -0600, Thomas M.
wrote:

I found a formula on the Internet that works.

=TODAY()-WEEKDAY(TODAY())+IF(WEEKDAY(TODAY())6,13,6)

Anyone have a better way of doing this?

--Tom

As Rick wrote, merely substitute TODAY() for A1 in the formula I
previously
posted.

=A1+7-WEEKDAY(A1+1)

or put TODAY() in A1 or some other cell to be referenced.

The formula I posted can be generalized to:

=A1+7-WEEKDAY(A1+7-DOW)

where DOW is Day Of Week and 1=Sun,2=Mon...6=Fri,7=Sun

--ron



  #10  
Old May 10th, 2009, 12:46 AM posted to microsoft.public.excel.worksheet.functions
Thomas M.
external usenet poster
 
Posts: 130
Default Find the Date of the Next Friday

Excel 2007

This is driving me nuts, primarily because I know that I've done this
before, but I just can't seem to zero in on the solution today, and I
haven't been able to find it in my other files. I need a formula that does
the following two things:

1) If the current day is a Friday, put the current date
2) In all other cases put the date of the *next* Friday

I seem to remember that this requires a combination of the DATE(), DAY(),
NOW(), and WEEKDAY() functions. I also seem to remember that the solution
*may* include use of the MOD() function. Anyone have a way to do this?

--Tom


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:05 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.