Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default recognize weekends and calculate the next working date....

Hello,

I have a spreadsheet where I have certain tasks that must be performed
sequentially based on the main task of doing a particular job. If the job
happens on the weekend, I need the formula to automatically recognise that it
is a weekend and allocate the next working day. (I have put in conditional
formatting for public holidays). At present at the top of my spreadsheet I
have the number of days after a job when the next task should be done. So
the formula in a cell looks like this: $P34+$Q$14, where P34 is the job
date, and Q14 is the number of days after when the task can be done. Is
there a way I can ensure that the result is a working day, rather than a
weekend?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 367
Default recognize weekends and calculate the next working date....

Hi Suek

this formula will help you, to look for the next monday, if the result
of
A1 + B1 is a saturday or a sunday.
=IF(WEEKDAY(A1+B1,2)5,A1+B1-WEEKDAY(A1+B1,2)+8,A1+B1)

hth

Carlo

On Nov 19, 1:57 pm, suek wrote:
Hello,

I have a spreadsheet where I have certain tasks that must be performed
sequentially based on the main task of doing a particular job. If the job
happens on the weekend, I need the formula to automatically recognise that it
is a weekend and allocate the next working day. (I have put in conditional
formatting for public holidays). At present at the top of my spreadsheet I
have the number of days after a job when the next task should be done. So
the formula in a cell looks like this: $P34+$Q$14, where P34 is the job
date, and Q14 is the number of days after when the task can be done. Is
there a way I can ensure that the result is a working day, rather than a
weekend?


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
Calculate number of WEEKENDS between two dates? kmcg Excel Discussion (Misc queries) 4 April 22nd 23 02:09 AM
Calculate A Date Excluding Weekends And Holidays travelersway New Users to Excel 10 February 9th 12 07:34 PM
Calculate the number of days between two dates,missing weekends? littlejess22 Excel Worksheet Functions 2 December 8th 06 02:07 PM
Calculate A Date Excluding Weekends And Holidays travelersway New Users to Excel 1 February 8th 06 08:56 PM
How to Calculate Dates without counting the weekends Lillian F Excel Worksheet Functions 9 January 24th 05 09:09 AM


All times are GMT +1. The time now is 12:39 PM.

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"