Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default aging calendar days

In my excel file, I have to add a certain number of days to any given date.
If the end date ends up on a weekend, I need to round it up to the next week
day. For example. The contractor timing is 20 calendar days (Not business
days). The start date may vary, but the Contractor timing is set at 20 days.
What date formula do I use to calc calendars days but not end up an a
weekend.

Column A Column B Column C
Start Date Timing Due Date
11-30-09 20 days 12-20-09 (needs to
be Monday 12-21-09)

This is what I was using, but it's seems there must be a easier way.
=IF(WEEKDAY($a2+$B2)=7,($a2+$b2)+2,IF(WEEKDAY($a2+ $b2)=1,($a2+$b2)+1))


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 269
Default aging calendar days

What you have is not terribly long or confusing and there is really no need
to change, but it could be reworked little by using a different return type
on the Weekday function. The ,2 shifts the numbers to Monday=1 to Saturday=7

=$A1+$B1+IF(WEEKDAY($A1+$B1,2)<6,0,8-WEEKDAY($A1+$B1,2))

It is a little more direct in that there is no longer a nested IF
--
If this helps, please remember to click yes.


"mmanis" wrote:

In my excel file, I have to add a certain number of days to any given date.
If the end date ends up on a weekend, I need to round it up to the next week
day. For example. The contractor timing is 20 calendar days (Not business
days). The start date may vary, but the Contractor timing is set at 20 days.
What date formula do I use to calc calendars days but not end up an a
weekend.

Column A Column B Column C
Start Date Timing Due Date
11-30-09 20 days 12-20-09 (needs to
be Monday 12-21-09)

This is what I was using, but it's seems there must be a easier way.
=IF(WEEKDAY($a2+$B2)=7,($a2+$b2)+2,IF(WEEKDAY($a2+ $b2)=1,($a2+$b2)+1))


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default aging calendar days


=IF(WEEKDAY($A2+$B2,2)5,$A2+$B2+8-WEEKDAY(D3,2),$A2+$B2)

is another way

"Paul C" wrote:

What you have is not terribly long or confusing and there is really no need
to change, but it could be reworked little by using a different return type
on the Weekday function. The ,2 shifts the numbers to Monday=1 to Saturday=7

=$A1+$B1+IF(WEEKDAY($A1+$B1,2)<6,0,8-WEEKDAY($A1+$B1,2))

It is a little more direct in that there is no longer a nested IF
--
If this helps, please remember to click yes.


"mmanis" wrote:

In my excel file, I have to add a certain number of days to any given date.
If the end date ends up on a weekend, I need to round it up to the next week
day. For example. The contractor timing is 20 calendar days (Not business
days). The start date may vary, but the Contractor timing is set at 20 days.
What date formula do I use to calc calendars days but not end up an a
weekend.

Column A Column B Column C
Start Date Timing Due Date
11-30-09 20 days 12-20-09 (needs to
be Monday 12-21-09)

This is what I was using, but it's seems there must be a easier way.
=IF(WEEKDAY($a2+$B2)=7,($a2+$b2)+2,IF(WEEKDAY($a2+ $b2)=1,($a2+$b2)+1))


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
Counting calendar days musha-bsuha[_2_] Excel Worksheet Functions 3 December 3rd 09 11:19 AM
Is there a formular for calendar days Abi Excel Discussion (Misc queries) 2 September 8th 08 04:43 PM
aging days between dates Karel Excel Discussion (Misc queries) 1 July 22nd 07 11:13 PM
Calendar days D Excel Worksheet Functions 1 March 1st 07 08:24 AM
Calendar day not days skip New Users to Excel 2 September 22nd 06 11:16 PM


All times are GMT +1. The time now is 02:30 AM.

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

About Us

"It's about Microsoft Excel"