Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default a formula that returns the previous fridays date

I need a date formula that returns the date of the friday from the week
before. For example i need it to return March 07 2008 up untill March 14
2008 the it will return that untill March 28th and so on? Any help would be
greatly appreciated
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 258
Default a formula that returns the previous fridays date

Diggyroo --

This works for me. If the date is in cell A1, then B1 might be:

=A1-WEEKDAY(A1)-1

That generated 3/7 through the end of the week, then 3/14.

HTH

"diggyroo" wrote:

I need a date formula that returns the date of the friday from the week
before. For example i need it to return March 07 2008 up untill March 14
2008 the it will return that untill March 28th and so on? Any help would be
greatly appreciated

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default a formula that returns the previous fridays date

Assuming that you want the date on Friday to return that Friday's date not
the previous Friday then try:

=A1-(WEEKDAY(A1+3,2))+1

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"diggyroo" wrote in message
...
I need a date formula that returns the date of the friday from the week
before. For example i need it to return March 07 2008 up untill March 14
2008 the it will return that untill March 28th and so on? Any help would
be
greatly appreciated



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 527
Default a formula that returns the previous fridays date

I assume that you do not want to enter a date but just show Fridays date
until the next Friday. This is done with the TODAY and WEEKDAY Functions.
Just be careful with the wrapping when you copy the formula.

=IF(WEEKDAY(TODAY())6,TODAY()-WEEKDAY(TODAY())+6,IF(WEEKDAY(TODAY())<6,TODAY()-WEEKDAY(TODAY())-1,TODAY()))

Regards
Peter

"diggyroo" wrote:

I need a date formula that returns the date of the friday from the week
before. For example i need it to return March 07 2008 up untill March 14
2008 the it will return that untill March 28th and so on? Any help would be
greatly appreciated

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default a formula that returns the previous fridays date

On Wed, 12 Mar 2008 14:41:04 -0700, diggyroo
wrote:

I need a date formula that returns the date of the friday from the week
before. For example i need it to return March 07 2008 up untill March 14
2008 the it will return that untill March 28th and so on? Any help would be
greatly appreciated



=A1-WEEKDAY(A1-6)
--ron


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default a formula that returns the previous fridays date

On Wed, 12 Mar 2008 14:41:04 -0700, diggyroo
wrote:

I need a date formula that returns the date of the friday from the week
before. For example i need it to return March 07 2008 up untill March 14
2008 the it will return that untill March 28th and so on? Any help would be
greatly appreciated


Do you really want it to return Mar 14 up to Mar 28? or only to Mar 21?
--ron
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default a formula that returns the previous fridays date

On Wed, 12 Mar 2008 21:25:43 -0400, Ron Rosenfeld
wrote:

On Wed, 12 Mar 2008 14:41:04 -0700, diggyroo
wrote:

I need a date formula that returns the date of the friday from the week
before. For example i need it to return March 07 2008 up untill March 14
2008 the it will return that untill March 28th and so on? Any help would be
greatly appreciated



=A1-WEEKDAY(A1-6)
--ron


Rereading your question, I'm not sure if you want to return March 14 on March
14, or March 7 on March 14.

If the latter, my first formula will do that.

If the former, then:

=A1+1-WEEKDAY(A1-5)
--ron
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default a formula that returns the previous fridays date

On Wed, 12 Mar 2008 15:41:01 -0700, pdberger
wrote:

=A1-WEEKDAY(A1)-1

That generated 3/7 through the end of the week, then 3/14.


But he wanted 3/7 until 3/14
--ron
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
date formula returns the 15th or the end of month Steve Excel Worksheet Functions 8 January 2nd 08 06:31 AM
formula for last Fridays date Pete Excel Discussion (Misc queries) 6 February 20th 07 06:18 PM
show fridays Tanner Excel Worksheet Functions 2 March 27th 06 02:43 AM
Have a date chane if it is +/- 2 days from the previous date Gohan51D Excel Discussion (Misc queries) 1 March 10th 06 09:23 PM
In excel,how do I change the date to a date 84 days from previous Alister Edmond Excel Discussion (Misc queries) 3 February 9th 06 02:24 PM


All times are GMT +1. The time now is 03:27 AM.

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

About Us

"It's about Microsoft Excel"