count in weeks - pls help

ambcw

New Member
Joined
Feb 9, 2011
Messages
13
Hi Guys,
can anybody help me this please..your input is much appreciated.
Below is the formula that I used to count completed properties for the month of march, year 2011 and it works well. however I was asked to count on weekly basis, say from 1 mar 11 to 7 mar 11, and so on.
=SUMPRODUCT(--($AT$3:$AT$10000=$P$8),--(MONTH($BX$3:$BX$10000)=2),--(YEAR($BX$3:$BX$10000)=2011))
Also, I don't know if there's another way of getting this automatic update. what happen now is I will change the month each month to suit.

Any input would be very much appreciated.

Cheers
Andre
 

Some videos you may like

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,203
Hi Guys,
can anybody help me this please..your input is much appreciated.
Below is the formula that I used to count completed properties for the month of march, year 2011 and it works well. however I was asked to count on weekly basis, say from 1 mar 11 to 7 mar 11, and so on.
=SUMPRODUCT(--($AT$3:$AT$10000=$P$8),--(MONTH($BX$3:$BX$10000)=2),--(YEAR($BX$3:$BX$10000)=2011))
Also, I don't know if there's another way of getting this automatic update. what happen now is I will change the month each month to suit.

Any input would be very much appreciated.

Cheers
Andre
Month-based calcs (counts)...

A2: 1-Feb-11
A3: 1-Mar-11

A2 means the month/year pair of Feb/11.

B2, copy down:

=SUMPRODUCT(--($AT$3:$AT$10000=$P$8),--($BX$3:$BX$10000-DAY($BX$3:$BX$10000)+1=$A2))

Week-based calcs (counts)

E2: 1-Mar-11
F2: 7-Mar-11

G2:

=SUMPRODUCT(--($AT$3:$AT$10000=$P$8),--($BX$3:$BX$10000>=$E2),--($BX$3:$BX$10000<=$F2))
 

ambcw

New Member
Joined
Feb 9, 2011
Messages
13
Hi Aladin,

Thanks for the reply. I'm trying to understand your input but couldn't get it well, maybe I'm too weak in excel.

I have a column for completion date, in this case

BX
3 1 mar 11
4 3 mar 11
5 12 mar 11
6 16 mar 11
7 17 mar 11
to .31 mar 11
10,000

then I want to count how many was done for week 1, week 2, week 3 and week 4

in example above
for week 1 = 2
week 2 = 1
week 3 = 2
week 4 = 0

Thanks for your help.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,203
Hi Aladin,

Thanks for the reply. I'm trying to understand your input but couldn't get it well, maybe I'm too weak in excel.

I have a column for completion date, in this case

BX
3 1 mar 11
4 3 mar 11
5 12 mar 11
6 16 mar 11
7 17 mar 11
to .31 mar 11
10,000

then I want to count how many was done for week 1, week 2, week 3 and week 4

in example above
for week 1 = 2
week 2 = 1
week 3 = 2
week 4 = 0

Thanks for your help.

Enter the date criteria in a convenient area, say, in E:G...

E2: Week 1

F2: 1-Mar-11

G2: 7-Mar-11

E3: Week 2

F3: 8-Mar-11

G3: 14-Mar-11

Assuming that P8 must still be included as criterion:

In H2 enter and copy down:

=SUMPRODUCT(--($AT$3:$AT$10000=$P$8),--($BX$3:$BX$10000>=$F2),--($BX$3:$BX$10000<=$G2))

Does this help?
 

ambcw

New Member
Joined
Feb 9, 2011
Messages
13
Hi Aladin,

Thanks for your help. Much appreciated.

Regards,
Andre
 

Watch MrExcel Video

Forum statistics

Threads
1,127,009
Messages
5,622,145
Members
415,881
Latest member
tasic89

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top