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

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
Script to insert Row Jeremy Excel Discussion (Misc queries) 2 April 19th 10 02:39 PM
Need VBA script to auto-insert value upon row insert Phil Excel Worksheet Functions 4 May 6th 08 02:41 PM
Excel 2000/XP script to Excel97 script hat Excel Programming 3 March 2nd 04 03:56 PM
insert excel vb script bt707[_6_] Excel Programming 1 October 18th 03 03:43 PM


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