Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Script to insert the next Friday

I'm looking for a simple script that will update a date to whatever the next
Friday will be. For example if I open the document on Thursday the 12th I
would want the cell to read Friday the 13th. If I opened the sheet on
Saturday the 14th I would want the cell to read Friday the 20th.

Any examples would be appreciated!

thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Script to insert the next Friday

Or a little simpler:

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

"T Kirtley" wrote in message
...
Try something like:

=TODAY()+6-WEEKDAY(TODAY())+(6<WEEKDAY(TODAY()))*7

Also, you can look up the WEEKDAY() & TODAY() functions in Excel's help.

Hope that helps,

TK


"Mark Langendoerfer" wrote:

I'm looking for a simple script that will update a date to whatever the
next
Friday will be. For example if I open the document on Thursday the 12th I
would want the cell to read Friday the 13th. If I opened the sheet on
Saturday the 14th I would want the cell to read Friday the 20th.

Any examples would be appreciated!

thank you



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
Formula to display next Friday from B1 works except on the Friday itself. StargateFan[_2_] Excel Discussion (Misc queries) 4 August 11th 11 09:20 AM
Need VBA script to auto-insert value upon row insert Phil Excel Worksheet Functions 4 May 6th 08 02:41 PM
Looking for a Next friday Date Script Whats a Display Name? Excel Programming 0 April 12th 05 08:32 PM
Looking for a Next friday Date Script T Kirtley Excel Programming 0 April 12th 05 08:32 PM
Script to insert the next Friday T Kirtley Excel Programming 0 April 12th 05 08:27 PM


All times are GMT +1. The time now is 01:22 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"