Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default count monday tuesday between two date

i want to count how many manday, wednesday and friday in between two
different date in excel
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 265
Default count monday tuesday between two date

Assuming that A2 contains the start date, and B2 contains the end date,
try the following...

To count the number of Mondays...

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A2&":"&B2)),2)=1))

To count the number of Mondays, Wednesdays, and Fridays...

=SUMPRODUCT(--ISNUMBER(MATCH(WEEKDAY(ROW(INDIRECT(A2&":"&B2)),2) ,{1,3,5},
0)))

Change the return type for the WEEDAY functions accordingly...

Monday = 1
Tuesday = 2
Wednesday = 3
Thursday = 4
Friday = 5
Saturday = 6
Sunday = 7

Hope this helps!

http://www.xl-central.com

In article ,
Amit Kumar Singh <Amit Kumar wrote:

i want to count how many manday, wednesday and friday in between two
different date in excel

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
Date calculation for Monday of one month to the Monday of the next Sunnyskies Excel Discussion (Misc queries) 19 July 2nd 07 12:08 PM
How to count by monday, tuesday, ...in a year? [email protected] Excel Discussion (Misc queries) 7 December 4th 06 07:37 PM
Calculating first/last Monday, Tuesday, etc. in a given month in E Rossta Excel Worksheet Functions 3 May 27th 06 02:19 AM
Function to write Weekday - Monday, Tuesday etc Shrikant Excel Discussion (Misc queries) 3 September 26th 05 11:32 AM
How do I insert Sunday,Monday,Tuesday, etc. to repeat in nonadjac. novice user0879 Excel Worksheet Functions 0 May 23rd 05 08:21 PM


All times are GMT +1. The time now is 01:26 AM.

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

About Us

"It's about Microsoft Excel"