View Single Post
  #13   Report Post  
Posted to microsoft.public.excel.programming
Dana DeLouis[_3_] Dana DeLouis[_3_] is offline
external usenet poster
 
Posts: 690
Default Formula to return Friday's date: m/d/yyyy

Hi. I think the Op wanted to add 0 due to the following...

=IF(WEEKDAY(NOW())=6,TODAY()+0,"")


If you are interested in adding 7 to a Friday along this idea, here is one
option:

=A1+MOD(6405928, 4*WEEKDAY(A1) + 13)

--
Dana DeLouis
Using Windows XP & Office XP
= = = = = = = = = = = = = = = = =


"Robert McCurdy" wrote in message
...
=A1+MOD(138612,WEEKDAY(A1)+6)


I first thought it was just a large date that started on a Thursday, dang

if I can figure this one out. Anyway it don't add 7 if A1
is a Friday, it adds zero.
Here is a slight modification on my last post.

=7*(MOD(A2,7)5)-MOD(A2,7)+A2+6


<snip