Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
coal_miner
 
Posts: n/a
Default Counting occurences of a specific day between two dates

Is there a formula that can count the occurences of a specific day between to
dates? I am familiar with an array formula
(=SUM((WEEKDAY(DATE(YEAR(N2),MONTH(N2),ROW(INDIREC T("1:"&DAY(DATE(YEAR(N2),MONTH(N2)+1,0))))))=B4)*1 )
that will count the number of times a specific day will be in a month, but I
need for two dates that I set. .My goal is to be figure out how many days a
month employees have worked up to a certain point in the month, but I cannot
use =NETWORKDAYS because we work Saturdays too, but not Sundays. Any help
will be greatly appreciated. Thank you.
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMPRODUCT(--(WEEKDAY(DATE(YEAR(N2),MONTH(N2),ROW(INDIRECT(DAY( M1)&":"&DAY(
M2)))))=B4))

where the dates are in M1 and M2

--

HTH

RP
(remove nothere from the email address if mailing direct)


"coal_miner" wrote in message
...
Is there a formula that can count the occurences of a specific day between

to
dates? I am familiar with an array formula

(=SUM((WEEKDAY(DATE(YEAR(N2),MONTH(N2),ROW(INDIREC T("1:"&DAY(DATE(YEAR(N2),M
ONTH(N2)+1,0))))))=B4)*1)
that will count the number of times a specific day will be in a month, but

I
need for two dates that I set. .My goal is to be figure out how many days

a
month employees have worked up to a certain point in the month, but I

cannot
use =NETWORKDAYS because we work Saturdays too, but not Sundays. Any help
will be greatly appreciated. Thank you.



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
Counting multiple occurances of a specific string BaseballFan Excel Worksheet Functions 1 February 26th 05 08:34 PM
Counting Number of Occurences Darren Excel Discussion (Misc queries) 1 February 23rd 05 03:26 PM
Counting unique entries in column A but only if specific values appear in columns B and C markx Excel Worksheet Functions 1 February 10th 05 11:52 AM
Counting specific text in a cell Steve Excel Worksheet Functions 7 January 26th 05 05:51 PM
Counting columns and specific Dates JulieD Excel Worksheet Functions 2 November 12th 04 01:13 PM


All times are GMT +1. The time now is 04:57 PM.

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"