Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Can an add function be tweaked to compute a date value that does not equal a
Saturday or Sunday. Example: Start date = 4/17, days added = 2, answer = 4/19 which is a Sunday. Desired answer is 4/20 which is a Monday. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this:
A1 = 4/17/2009 B1 = 2 If the result you expect is Monday then that means you're counting the start date. =WORKDAY(A1-1,B1) Format as Date The WORKDAY function requires the Analysis ToolPak add-in be installed in Excel versions prior to Excel 2007. -- Biff Microsoft Excel MVP "brownmre" wrote in message ... Can an add function be tweaked to compute a date value that does not equal a Saturday or Sunday. Example: Start date = 4/17, days added = 2, answer = 4/19 which is a Sunday. Desired answer is 4/20 which is a Monday. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try
=A1+2+IF(WEEKDAY(A1+2,2)5,8-WEEKDAY(A1+2,2),0) with Start date in A1 "brownmre" wrote: Can an add function be tweaked to compute a date value that does not equal a Saturday or Sunday. Example: Start date = 4/17, days added = 2, answer = 4/19 which is a Sunday. Desired answer is 4/20 which is a Monday. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Look in Excel help at the function WORKDAY
-- David Biddulph "brownmre" wrote in message ... Can an add function be tweaked to compute a date value that does not equal a Saturday or Sunday. Example: Start date = 4/17, days added = 2, answer = 4/19 which is a Sunday. Desired answer is 4/20 which is a Monday. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks Sheeloo. It works great.
"Sheeloo" wrote: Try =A1+2+IF(WEEKDAY(A1+2,2)5,8-WEEKDAY(A1+2,2),0) with Start date in A1 "brownmre" wrote: Can an add function be tweaked to compute a date value that does not equal a Saturday or Sunday. Example: Start date = 4/17, days added = 2, answer = 4/19 which is a Sunday. Desired answer is 4/20 which is a Monday. |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You are welcome.
Try Biff's solution too... it is more elegant. =WORKDAY(A1-1,2) or =WORKDAY(A1,2) "brownmre" wrote: Thanks Sheeloo. It works great. "Sheeloo" wrote: Try =A1+2+IF(WEEKDAY(A1+2,2)5,8-WEEKDAY(A1+2,2),0) with Start date in A1 "brownmre" wrote: Can an add function be tweaked to compute a date value that does not equal a Saturday or Sunday. Example: Start date = 4/17, days added = 2, answer = 4/19 which is a Sunday. Desired answer is 4/20 which is a Monday. |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
It depends on what their exact requirements are.
Our formulas return different results depending on the weekday of the date. -- Biff Microsoft Excel MVP "Sheeloo" wrote in message ... You are welcome. Try Biff's solution too... it is more elegant. =WORKDAY(A1-1,2) or =WORKDAY(A1,2) "brownmre" wrote: Thanks Sheeloo. It works great. "Sheeloo" wrote: Try =A1+2+IF(WEEKDAY(A1+2,2)5,8-WEEKDAY(A1+2,2),0) with Start date in A1 "brownmre" wrote: Can an add function be tweaked to compute a date value that does not equal a Saturday or Sunday. Example: Start date = 4/17, days added = 2, answer = 4/19 which is a Sunday. Desired answer is 4/20 which is a Monday. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Trying to calculate end date using order date and lead time variab | Excel Worksheet Functions | |||
Auto calculate for date + days forward to yield new date | Excel Worksheet Functions | |||
formula to calculate age using birth date and current date | Excel Worksheet Functions | |||
formula to calculate future date from date in cell plus days | Excel Worksheet Functions | |||
Calculate month-end date from date in adjacent cell? | Excel Worksheet Functions |