![]() |
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. |
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. |
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. |
All times are GMT +1. The time now is 11:43 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com