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 Count working days by week

Column A Column B
Date Week Number
Mon, Jan 08, 2007 2 =WEEKNUM(A2,1)
Mon, Jan 08, 2007 2 =WEEKNUM(A3,1)
Mon, Jan 08, 2007 2 =WEEKNUM(A4,1)
Tue, Jan 09, 2007 2 =WEEKNUM(A5,1)
Tue, Jan 09, 2007 2 and so on
Tue, Jan 09, 2007 2
Wed, Jan 10, 2007 2
Wed, Jan 10, 2007 2
Wed, Jan 10, 2007 2
Wed, Jan 10, 2007 2
Wed, Jan 10, 2007 2
Thu, Jan 11, 2007 2
Thu, Jan 11, 2007 2
Thu, Jan 11, 2007 2
Thu, Jan 11, 2007 2
Fri, Jan 12, 2007 2
Fri, Jan 12, 2007 2
Sun, Jan 14, 2007 3
Sun, Jan 14, 2007 3
Sun, Jan 14, 2007 3
Mon, Jan 15, 2007 3
Mon, Jan 15, 2007 3
Mon, Jan 15, 2007 3
Mon, Jan 15, 2007 3
and so on

So now I've to count working days in the weeks 1, 2, 3, ..........53
Same date entry as 1 day.
Something similar to count by month:
=SUMPRODUCT(--(YEAR(trips!$A$2:$A$1200)=2007),(MONTH(trips!$A$2: $A$1200)=1)
/COUNTIF(trips!$A$2:$A$1200,trips!$A$2:$A$1200&""))
Thanks in advance. Igor.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 150
Default Count working days by week

Assuming a five day work week (Monday through Friday), let D2, D3, D4,
etc., contain 1, 2, 3, etc., then try...

E2, copied down:

=SUMPRODUCT(--(WEEKDAY($A$2:$A$25,2)<6),--($B$2:$B$25=D2))

To exclude holidays, let a range of cells contain a list of holidays,
let's say G2:G10, then try...

=SUMPRODUCT(--(WEEKDAY($A$2:$A$25,2)<6),--ISNA(MATCH($A$2:$A$25,$G$2:$G$1
0,0)),--($B$2:$B$25=D2))

Hope this helps!

In article <6c5ca6bd80b12@uwe, "inta251" <u30987@uwe wrote:

Column A Column B
Date Week Number
Mon, Jan 08, 2007 2 =WEEKNUM(A2,1)
Mon, Jan 08, 2007 2 =WEEKNUM(A3,1)
Mon, Jan 08, 2007 2 =WEEKNUM(A4,1)
Tue, Jan 09, 2007 2 =WEEKNUM(A5,1)
Tue, Jan 09, 2007 2 and so on
Tue, Jan 09, 2007 2
Wed, Jan 10, 2007 2
Wed, Jan 10, 2007 2
Wed, Jan 10, 2007 2
Wed, Jan 10, 2007 2
Wed, Jan 10, 2007 2
Thu, Jan 11, 2007 2
Thu, Jan 11, 2007 2
Thu, Jan 11, 2007 2
Thu, Jan 11, 2007 2
Fri, Jan 12, 2007 2
Fri, Jan 12, 2007 2
Sun, Jan 14, 2007 3
Sun, Jan 14, 2007 3
Sun, Jan 14, 2007 3
Mon, Jan 15, 2007 3
Mon, Jan 15, 2007 3
Mon, Jan 15, 2007 3
Mon, Jan 15, 2007 3
and so on

So now I've to count working days in the weeks 1, 2, 3, ..........53
Same date entry as 1 day.
Something similar to count by month:
=SUMPRODUCT(--(YEAR(trips!$A$2:$A$1200)=2007),(MONTH(trips!$A$2: $A$1200)=1)
/COUNTIF(trips!$A$2:$A$1200,trips!$A$2:$A$1200&""))
Thanks in advance. Igor.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default Count working days by week

Thanks for quick respond.
In both cases formulas count number of entrees in week 1, 2,€¦.53.
I need count days per week in Column A
Now Ill try simple. In Column A I have only dates.
Same dates entrees can be from 1 to infinity.

Sample: In this case
Date
01/08/2007
01/08/2007
01/08/2007 1st day
01/09/2007
01/09/2007
01/09/2007 2nd day
01/10/2007
01/10/2007
01/10/2007
01/10/2007
01/10/2007 3rd day
01/11/2007
01/11/2007
01/11/2007
01/11/2007 4th day
01/12/2007
01/12/2007 5th day
and so on

All this days belong to Week #2
This meet i worked 5 days in week 2.
Formula need with result 5.
Next Week #3,........53 (end of the year)
Thanks again. Igor.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200701/1

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 150
Default Count working days by week

Try the following instead...

Assumptions:

A2:A100 contains the data

B2:B100 contains the week number

Formula:

=SUM(IF(FREQUENCY(IF($B$2:$B$100=D2,$A$2:$A$100),I F($B$2:$B$100=D2,$A$2:$
A$100)),1))

....where D2 contains the week number. Note that the formula needs to be
confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article <6c623c86ca197@uwe, "inta251 via OfficeKB.com" <u30987@uwe
wrote:

Thanks for quick respond.
In both cases formulas count number of entrees in week 1, 2,€¦.53.
I need count days per week in Column A
Now Ill try simple. In Column A I have only dates.
Same dates entrees can be from 1 to infinity.

Sample: In this case
Date
01/08/2007
01/08/2007
01/08/2007 1st day
01/09/2007
01/09/2007
01/09/2007 2nd day
01/10/2007
01/10/2007
01/10/2007
01/10/2007
01/10/2007 3rd day
01/11/2007
01/11/2007
01/11/2007
01/11/2007 4th day
01/12/2007
01/12/2007 5th day
and so on

All this days belong to Week #2
This meet i worked 5 days in week 2.
Formula need with result 5.
Next Week #3,........53 (end of the year)
Thanks again. Igor.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default Count working days by week

Still incorrect formula.
Temporarily I got formula
Week 1:
=SUMPRODUCT(--($A$2:$A$100=DATE(2007,1,1)),--( $A$2:$A$100<=DATE(2007,1,6))
/COUNTIF($A$2:$A$100,$A$2:$A$100&""))

Week 2:
=SUMPRODUCT(--($A$2:$A$100=DATE(2007,1,7)),--( $A$2:$A$100<=DATE(2007,1,13))
/COUNTIF($A$2:$A$100,$A$2:$A$100&""))

and so on.

If you will have some idea, please let me know.
Thanks again for your time.
Sincerely, Igor.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200701/1



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 150
Default Count working days by week

I don't understand. Can you elaborate?

In article <6c677a22499e9@uwe, "inta251 via OfficeKB.com" <u30987@uwe
wrote:

Still incorrect formula.
Temporarily I got formula
Week 1:
=SUMPRODUCT(--($A$2:$A$100=DATE(2007,1,1)),--( $A$2:$A$100<=DATE(2007,1,6))
/COUNTIF($A$2:$A$100,$A$2:$A$100&""))

Week 2:
=SUMPRODUCT(--($A$2:$A$100=DATE(2007,1,7)),--( $A$2:$A$100<=DATE(2007,1,13))
/COUNTIF($A$2:$A$100,$A$2:$A$100&""))

and so on.

If you will have some idea, please let me know.
Thanks again for your time.
Sincerely, Igor.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default Count working days by week

Hi, Domenic.
Sorry for my dummies, but after few hours of thinking I realized formula
needs to be
confirmed with CTRL+SHIFT+ENTER, not just ENTER. After that in front and end
of the formula
show up two symbols { and }. After correct confirmation (CTRL+SHIFT+ENTER) I
got satisfied result.
Once again, thanks for your time and help to €˜DUMMIES.

=SUM(IF(FREQUENCY(IF($B$2:$B$100=D2,$A$2:$A$100),I F($B$2:$B$100=D2,$A$2:$
A$100)),1))

--
Message posted via http://www.officekb.com

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
Getting XL to Calc Working Days Lost without using NETWORKDAYS() Function richarjb Excel Discussion (Misc queries) 7 May 22nd 06 08:35 PM
adding only working days to dates bazooka Excel Discussion (Misc queries) 2 May 4th 06 06:15 PM
Macro to copy cells to rows below [email protected] Excel Discussion (Misc queries) 1 January 20th 06 06:59 PM
Macro to insert copied cells [email protected] Excel Discussion (Misc queries) 17 January 18th 06 10:40 AM
amount of working days per month Nigel Excel Discussion (Misc queries) 2 November 29th 05 10:41 AM


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