Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Next Firday Date Calculation in VBA

Hi again.

In a spreadsheet I am creating I require it to show to dates.

The first is very simple as it is todays date:

Today()

The second I cant work out.

I need the second date to show the next friday after the Today date
except if Today's date is a friday when it should show that.

Can anyone give me a hand with the formula or code for this?

Thanks

Celtic_Avenger
:confused

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Next Firday Date Calculation in VBA

For a formula solution assuming the date or interest is in A2
=IF(WEEKDAY(A2)=7,A2+6,A2+6-WEEKDAY(A2))
Tom Wood

"Celtic_Avenger " wrote in
message ...
Hi again.

In a spreadsheet I am creating I require it to show to dates.

The first is very simple as it is todays date:

Today()

The second I cant work out.

I need the second date to show the next friday after the Today date,
except if Today's date is a friday when it should show that.

Can anyone give me a hand with the formula or code for this?

Thanks

Celtic_Avenger



---
Message posted from http://www.ExcelForum.com/



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
A specific date used for calculation of a new date Ditte Excel Discussion (Misc queries) 7 July 17th 09 08:00 AM
Date Calculation patsyshaw Excel Worksheet Functions 3 March 5th 09 08:01 PM
Date Calculation (from entered date / 1yr later in next field) ajaminb Excel Worksheet Functions 6 September 29th 08 02:11 PM
End Date Calculation (adding a start date duration) Silena K-K Excel Discussion (Misc queries) 5 January 25th 08 04:27 PM
Tricky Date calculation: How to calculate a future date [email protected] Excel Discussion (Misc queries) 9 August 11th 06 04:24 AM


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