Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
DJ DJ is offline
external usenet poster
 
Posts: 13
Default date formulas

How can I create a formula that calculates the week ending date (date every Friday) so that it automatically appears according to the current date
For example the week ending date of this weeks pay period is 01-30-03 but if I open the spreadsheet on Monday 01-26, how do I get the week ending date to populate
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default date formulas

=IF(WEEKDAY(A1)=5,A1,IF(WEEKDAY(A1)=7,A1+6,A1+6-WEEKDAY(A1)))

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"dj" wrote in message
...
How can I create a formula that calculates the week ending date (date

every Friday) so that it automatically appears according to the current
date.
For example the week ending date of this weeks pay period is 01-30-03 but

if I open the spreadsheet on Monday 01-26, how do I get the week ending date
to populate


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default date formulas

One way:

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

or if you have a specific date in, say, A1:

= A1 - WEEKDAY(A1+1)+ 7

In article ,
"dj" wrote:

How can I create a formula that calculates the week ending date (date every
Friday) so that it automatically appears according to the current date.
For example the week ending date of this weeks pay period is 01-30-03 but if
I open the spreadsheet on Monday 01-26, how do I get the week ending date to
populate

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 formulas rwpatter1 Excel Worksheet Functions 3 March 26th 09 02:09 PM
date formulas ascott Excel Discussion (Misc queries) 6 March 5th 08 10:05 PM
date formulas Karl Excel Discussion (Misc queries) 1 March 31st 07 05:30 AM
date formulas heath Excel Discussion (Misc queries) 1 March 24th 06 02:39 PM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM


All times are GMT +1. The time now is 03:59 PM.

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"