Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Setting WEEKDAY function to Exclude Friday in Calculation

I have to dates:
Cell A1 e.g 10/3/2004
Cell A2 e.g 22/9/2004
i want to calculate number of days between the two dates excluding Friday.

Note: i am using Office XP 2002
--
Faizan Ahmad
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Setting WEEKDAY function to Exclude Friday in Calculation

Hi
try:
=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&A2)))<5))

-----Original Message-----
I have to dates:
Cell A1 e.g 10/3/2004
Cell A2 e.g 22/9/2004
i want to calculate number of days between the two dates

excluding Friday.

Note: i am using Office XP 2002
--
Faizan Ahmad
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Setting WEEKDAY function to Exclude Friday in Calculation

Thanks for your reply,
the result is different if you apply it the formula to:
A1 = 1/9/2004
a2 = 30/9/2004

Faizan
"Frank Kabel" wrote:

Hi
try:
=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&A2)))<5))

-----Original Message-----
I have to dates:
Cell A1 e.g 10/3/2004
Cell A2 e.g 22/9/2004
i want to calculate number of days between the two dates

excluding Friday.

Note: i am using Office XP 2002
--
Faizan Ahmad
.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Setting WEEKDAY function to Exclude Friday in Calculation

Hi
sorry, wrong weeknumber exclusion. Make this:
=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&A2)))<6))

This returns 26 for your example set of dates

-----Original Message-----
Thanks for your reply,
the result is different if you apply it the formula to:
A1 = 1/9/2004
a2 = 30/9/2004

Faizan
"Frank Kabel" wrote:

Hi
try:
=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&A2)))<5))

-----Original Message-----
I have to dates:
Cell A1 e.g 10/3/2004
Cell A2 e.g 22/9/2004
i want to calculate number of days between the two

dates
excluding Friday.

Note: i am using Office XP 2002
--
Faizan Ahmad
.


.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Setting WEEKDAY function to Exclude Friday in Calculation

Dear Frand Kabel,
Thank you very much for comments,
it really solved my problems.

thanks
Faizan

"Frank kabel" wrote:

Hi
sorry, wrong weeknumber exclusion. Make this:
=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&A2)))<6))

This returns 26 for your example set of dates

-----Original Message-----
Thanks for your reply,
the result is different if you apply it the formula to:
A1 = 1/9/2004
a2 = 30/9/2004

Faizan
"Frank Kabel" wrote:

Hi
try:
=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&A2)))<5))

-----Original Message-----
I have to dates:
Cell A1 e.g 10/3/2004
Cell A2 e.g 22/9/2004
i want to calculate number of days between the two

dates
excluding Friday.

Note: i am using Office XP 2002
--
Faizan Ahmad
.


.


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
Weekday + Time Calculation in Cell Alexander Excel Worksheet Functions 7 January 9th 07 03:28 PM
WEEKDAY() function: display TEXT not numeric weekday tom Excel Discussion (Misc queries) 3 November 21st 06 04:32 PM
How do I set up a calculation to exclude weekends? Ken Proj mgr Excel Worksheet Functions 6 February 8th 06 02:49 PM
calculation to exclude weekends Need2Know Excel Worksheet Functions 6 July 14th 05 09:01 PM
Exclude cells from calculation? Claude Excel Programming 1 April 20th 04 12:35 PM


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