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 excluding my country's weekends

I have a start date in cell A1 ( 10/05/2007 ) ,specific number in cell b1 ( 5
) then i need to caculate the due date which equals A1+A2 excluding the
weekends noting that my coutry's weekends are ( friday & saturday ).

i ll be so grateful if any body helps me.

Thanks
Karam
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 341
Default excluding my country's weekends

hey i just did this the other day

i did it in 2 steps

first step: create a list of dates excluding weekends going down a column

cell A1 = today()
cell A2 = IF(WEEKDAY(a1+1)=1,a1+2,IF(WEEKDAY(a1+1)=7,a1+3,a1 +1))
cells A3:500 = extend the formula downwards a long way

second step: build the bit which works it out

cell B1 = (your date)
cell B2 = (how many dates to add)
cell B3 = index(A1:A500,match(B1,A1:A500,0)+B2,1)

I suppose you could get this to work in one step if you can be bothered to
think about it but I can't.
--
Allllen


"Karam" wrote:

I have a start date in cell A1 ( 10/05/2007 ) ,specific number in cell b1 ( 5
) then i need to caculate the due date which equals A1+A2 excluding the
weekends noting that my coutry's weekends are ( friday & saturday ).

i ll be so grateful if any body helps me.

Thanks
Karam

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default excluding my country's weekends

This should pretty much do it...
http://www.excelforum.com/showthread.php?t=349613

Write back if you need more help.

Regards,
Ryan---

--
RyGuy


"Karam" wrote:

I have a start date in cell A1 ( 10/05/2007 ) ,specific number in cell b1 ( 5
) then i need to caculate the due date which equals A1+A2 excluding the
weekends noting that my coutry's weekends are ( friday & saturday ).

i ll be so grateful if any body helps me.

Thanks
Karam

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 341
Default excluding my country's weekends

Sorry I just realised I was doing it for Sat and Sun.

A2 = IF(WEEKDAY(a1+1)=6,a1+3,IF(WEEKDAY(a1+1)=7,a1+2,a1 +1))
--
Allllen


"Allllen" wrote:

hey i just did this the other day

i did it in 2 steps

first step: create a list of dates excluding weekends going down a column

cell A1 = today()
cell A2 = IF(WEEKDAY(a1+1)=1,a1+2,IF(WEEKDAY(a1+1)=7,a1+3,a1 +1))
cells A3:500 = extend the formula downwards a long way

second step: build the bit which works it out

cell B1 = (your date)
cell B2 = (how many dates to add)
cell B3 = index(A1:A500,match(B1,A1:A500,0)+B2,1)

I suppose you could get this to work in one step if you can be bothered to
think about it but I can't.
--
Allllen


"Karam" wrote:

I have a start date in cell A1 ( 10/05/2007 ) ,specific number in cell b1 ( 5
) then i need to caculate the due date which equals A1+A2 excluding the
weekends noting that my coutry's weekends are ( friday & saturday ).

i ll be so grateful if any body helps me.

Thanks
Karam

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default excluding my country's weekends

Hummm, I just tried this function...I think that +8 should be +7

=SUMPRODUCT(INT((E1-WEEKDAY(E1+1-{2;3;4;5;6})-C1+7)/7))-SUMPRODUCT(ISNUMBER(MATCH(WEEKDAY(C3:C5),{2;3;4;5; 6},0))*(C3:C5=C1)*(C3:C5<=E1))


Regards,
Ryan---

--
RyGuy


"ryguy7272" wrote:

This should pretty much do it...
http://www.excelforum.com/showthread.php?t=349613

Write back if you need more help.

Regards,
Ryan---

--
RyGuy


"Karam" wrote:

I have a start date in cell A1 ( 10/05/2007 ) ,specific number in cell b1 ( 5
) then i need to caculate the due date which equals A1+A2 excluding the
weekends noting that my coutry's weekends are ( friday & saturday ).

i ll be so grateful if any body helps me.

Thanks
Karam

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
Pivot table grouping excluding weekends maryj Excel Discussion (Misc queries) 5 April 23rd 23 03:46 AM
Calculate A Date Excluding Weekends And Holidays travelersway New Users to Excel 10 February 9th 12 07:34 PM
Calculate A Date Excluding Weekends And Holidays travelersway New Users to Excel 1 February 8th 06 08:56 PM
Workday With Weekends Excluding Holidays Chuy Excel Worksheet Functions 5 January 18th 06 08:04 PM
Formula - Excluding weekends & holidays Connie Martin Excel Worksheet Functions 9 February 25th 05 04:28 AM


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