Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
RaY RaY is offline
external usenet poster
 
Posts: 164
Default if date has Saturday or Sunday in it need to add 2 or 1 to date

I have a speed sheet that calculates the number of days required to get a
project completed.
in a feild it calculated the estimated completion date based on the new
start date each morning.
but i need it to show Monday if thet date is Saturday or Sunday.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 8
Default if date has Saturday or Sunday in it need to add 2 or 1 to date

On 22 jun, 15:16, ray wrote:
I have a speed sheet that calculates the number of days required to get a
project completed.
in a feild it calculated the estimated completion date based on the new
start date each morning.
but i need it to show Monday if thet date is Saturday or Sunday.


If your estimated completion date is Cell A1 (for example), then enter
the following formula into Cell A2. Cell A2 will be the new Monday-
ised completion date.
You may need to apply a date format to A2.

=IF(WEEKDAY(A1;2)=6;A1+2;IF(WEEKDAY(A1;2)=7;A1+1;A 1))

PS some versions of XL use commas instead of semicolons in the above
formula.
Dave.

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 12
Default if date has Saturday or Sunday in it need to add 2 or 1 to date

use the weekday function in Excel. This function gives days of the week
different numbers.

Example; if your date was in cell A1, the following formula in B1 would
change date to following Monday, if date was Sat or Sun:

=IF(WEEKDAY(A1)=1,A1+1,IF(WEEKDAY(A1)=7,A1+2,))
Regards

Philip

"ray" wrote in message
...
I have a speed sheet that calculates the number of days required to get a
project completed.
in a feild it calculated the estimated completion date based on the new
start date each morning.
but i need it to show Monday if thet date is Saturday or Sunday.


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
Find the date of the coming up Saturday given the current date. Michael Ermino Excel Worksheet Functions 4 April 11th 07 02:48 AM
convert weekday date to the next sunday date Oldersox Excel Worksheet Functions 2 January 8th 07 11:26 AM
Sunday to Saturday weekly foreward planner leub Excel Worksheet Functions 3 January 9th 06 03:53 PM
Is there a way to identify saturday and sunday automatically Unicornlmb Excel Discussion (Misc queries) 2 January 5th 06 05:34 PM
Receiving daily log Sunday - Saturday by incoming truck Mark Schroeder Excel Discussion (Misc queries) 0 November 19th 05 12:24 AM


All times are GMT +1. The time now is 08:04 PM.

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

About Us

"It's about Microsoft Excel"