Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I am looking for some help calculating a date. Say I have a start date in cell A1. I need to calculate a date 30 days in the future (including weekends), however, if the last day lands on a weekend or holiday then I need the result to move to the first workday. For example: A1: Aug 18, 2006 30 days from Aug 18, 2006 is Sept 17, 2006. Because this is a Sunday, I need the result to be the next working day: Sept 18, 2006. Thank you for your help! Jen |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
Not sure exactly what the Choose function relates to. But from what you describe you should be able to use the following: =WORKDAY(A1,(B1-((B1/7)*2))) This works with work days only (although you must specify holidays if you want it to take these into account), I have just used the 30 days and that amount less the weekend days gives the amount of working days in the future to return. Where A1 is the begining date and B1 is the days in the future you want the date for. Hope this helps. Nav "Jen C" wrote: Hi, I am looking for some help calculating a date. Say I have a start date in cell A1. I need to calculate a date 30 days in the future (including weekends), however, if the last day lands on a weekend or holiday then I need the result to move to the first workday. For example: A1: Aug 18, 2006 30 days from Aug 18, 2006 is Sept 17, 2006. Because this is a Sunday, I need the result to be the next working day: Sept 18, 2006. Thank you for your help! Jen |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Great, thank you very much.
I assumed I was to use the Choose function because I found a formula to calculate 20 days from a date that looked like this: =20+CHOOSE(WEEKDAY(A1),1,0,0,0,0,0,2)+A1 However, I was unable to determine what the 7 digits (1,0,0,0,0,0,2) represented and the reason for them. Thanks once again. Jen Nav wrote: Hi Not sure exactly what the Choose function relates to. But from what you describe you should be able to use the following: =WORKDAY(A1,(B1-((B1/7)*2))) This works with work days only (although you must specify holidays if you want it to take these into account), I have just used the 30 days and that amount less the weekend days gives the amount of working days in the future to return. Where A1 is the begining date and B1 is the days in the future you want the date for. Hope this helps. Nav "Jen C" wrote: Hi, I am looking for some help calculating a date. Say I have a start date in cell A1. I need to calculate a date 30 days in the future (including weekends), however, if the last day lands on a weekend or holiday then I need the result to move to the first workday. For example: A1: Aug 18, 2006 30 days from Aug 18, 2006 is Sept 17, 2006. Because this is a Sunday, I need the result to be the next working day: Sept 18, 2006. Thank you for your help! Jen |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
No problem, glad it worked. FYI: Choose is more for when you want to pick
something in a particular list, ie. the nth item in Mon, Tue, Wed... I would appreciate it if you could rate the post if the answer solves your problem whenever you ask a question on these groups. Regards, Nav "Jen C" wrote: Great, thank you very much. I assumed I was to use the Choose function because I found a formula to calculate 20 days from a date that looked like this: =20+CHOOSE(WEEKDAY(A1),1,0,0,0,0,0,2)+A1 However, I was unable to determine what the 7 digits (1,0,0,0,0,0,2) represented and the reason for them. Thanks once again. Jen Nav wrote: Hi Not sure exactly what the Choose function relates to. But from what you describe you should be able to use the following: =WORKDAY(A1,(B1-((B1/7)*2))) This works with work days only (although you must specify holidays if you want it to take these into account), I have just used the 30 days and that amount less the weekend days gives the amount of working days in the future to return. Where A1 is the begining date and B1 is the days in the future you want the date for. Hope this helps. Nav "Jen C" wrote: Hi, I am looking for some help calculating a date. Say I have a start date in cell A1. I need to calculate a date 30 days in the future (including weekends), however, if the last day lands on a weekend or holiday then I need the result to move to the first workday. For example: A1: Aug 18, 2006 30 days from Aug 18, 2006 is Sept 17, 2006. Because this is a Sunday, I need the result to be the next working day: Sept 18, 2006. Thank you for your help! Jen |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sorry, rated your post. Thanks once again!
Nav wrote: No problem, glad it worked. FYI: Choose is more for when you want to pick something in a particular list, ie. the nth item in Mon, Tue, Wed... I would appreciate it if you could rate the post if the answer solves your problem whenever you ask a question on these groups. Regards, Nav "Jen C" wrote: Great, thank you very much. I assumed I was to use the Choose function because I found a formula to calculate 20 days from a date that looked like this: =20+CHOOSE(WEEKDAY(A1),1,0,0,0,0,0,2)+A1 However, I was unable to determine what the 7 digits (1,0,0,0,0,0,2) represented and the reason for them. Thanks once again. Jen Nav wrote: Hi Not sure exactly what the Choose function relates to. But from what you describe you should be able to use the following: =WORKDAY(A1,(B1-((B1/7)*2))) This works with work days only (although you must specify holidays if you want it to take these into account), I have just used the 30 days and that amount less the weekend days gives the amount of working days in the future to return. Where A1 is the begining date and B1 is the days in the future you want the date for. Hope this helps. Nav "Jen C" wrote: Hi, I am looking for some help calculating a date. Say I have a start date in cell A1. I need to calculate a date 30 days in the future (including weekends), however, if the last day lands on a weekend or holiday then I need the result to move to the first workday. For example: A1: Aug 18, 2006 30 days from Aug 18, 2006 is Sept 17, 2006. Because this is a Sunday, I need the result to be the next working day: Sept 18, 2006. Thank you for your help! Jen |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If function calculating date | Excel Worksheet Functions | |||
Need some comments on my Utility_Move class module. | Excel Worksheet Functions | |||
Mileage Claim Formula | New Users to Excel | |||
NETWORKDAYS - Multiple Date Selection | Excel Discussion (Misc queries) | |||
Calculating due date? | Excel Worksheet Functions |