Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default calculating a date with the CHOOSE function

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Nav Nav is offline
external usenet poster
 
Posts: 43
Default calculating a date with the CHOOSE function

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default calculating a date with the CHOOSE function

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Nav Nav is offline
external usenet poster
 
Posts: 43
Default calculating a date with the CHOOSE function

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default calculating a date with the CHOOSE function

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
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
If function calculating date extrudebg Excel Worksheet Functions 1 August 22nd 06 06:42 PM
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Mileage Claim Formula johndavies New Users to Excel 4 August 14th 06 09:24 AM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
Calculating due date? Loyalise Excel Worksheet Functions 2 November 2nd 04 07:38 AM


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