Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default if "x" days is more fall on weekend return following monday


in A2:A366 i have every date of the year in mmddyyyy format

In B2:B366 i want it to return the date that is three days later.
unless it falls on a weekend. then it needs to be the following
monday.

For example:
A2 = 07/04/2006 B2 = 07/07/2006
A3 = 07/05/2006 B3 = 07/10/2006
A4 = 07/06/2006 B4 = 07/10/2006
A5 = 07/07/2006 B5 = 07/10/2006
A6 = 07/08/2006 B6 = 07/11/2006

I also want to make it is a format that cell C1 is where I put in the
amount of days later (so I can change it from 3 to 5 to 10, etc.)

Any suggestions.


--
jermsalerms
------------------------------------------------------------------------
jermsalerms's Profile: http://www.excelforum.com/member.php...o&userid=30167
View this thread: http://www.excelforum.com/showthread...hreadid=559108

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default if "x" days is more fall on weekend return following monday

=WORKDAY(A2,$C$1)

and copy down

WORKDY is part of the Analysis Toolpak, so that needs to be installed
(ToolsAddins)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"jermsalerms"
wrote in message
...

in A2:A366 i have every date of the year in mmddyyyy format

In B2:B366 i want it to return the date that is three days later.
unless it falls on a weekend. then it needs to be the following
monday.

For example:
A2 = 07/04/2006 B2 = 07/07/2006
A3 = 07/05/2006 B3 = 07/10/2006
A4 = 07/06/2006 B4 = 07/10/2006
A5 = 07/07/2006 B5 = 07/10/2006
A6 = 07/08/2006 B6 = 07/11/2006

I also want to make it is a format that cell C1 is where I put in the
amount of days later (so I can change it from 3 to 5 to 10, etc.)

Any suggestions.


--
jermsalerms
------------------------------------------------------------------------
jermsalerms's Profile:

http://www.excelforum.com/member.php...o&userid=30167
View this thread: http://www.excelforum.com/showthread...hreadid=559108



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default if "x" days is more fall on weekend return following monday


thank you this worked great


--
jermsalerms
------------------------------------------------------------------------
jermsalerms's Profile: http://www.excelforum.com/member.php...o&userid=30167
View this thread: http://www.excelforum.com/showthread...hreadid=559108

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default if "x" days is more fall on weekend return following monday


You say you want to return a date 3 days later unless it falls on the
weekend, in which case return following Monday. This isn't always the
same as adding 3 workdays and certainly won't ever be the same if C1 is
10

I suggest

=WORKDAY(A2+$C$1-1,1)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=559108

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
Need cell formulas to return the day of every Monday in a month based on year entered mikeburg Excel Discussion (Misc queries) 3 June 14th 06 10:07 PM
Desperately need help with 3 calculations Scoooter Excel Worksheet Functions 3 June 12th 06 04:28 PM
Search a random array of cells and return a value of "X" EKB Excel Worksheet Functions 1 April 17th 06 03:57 AM
Return only work days mhart210 Excel Discussion (Misc queries) 1 August 18th 05 04:22 PM
Date Calculations Bruce Excel Worksheet Functions 11 May 19th 05 01:09 AM


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