Count value monthly

Yvonne Ng

Board Regular
Joined
Nov 5, 2013
Messages
67
Hi,
how do I calculate a Colomn of values in Coloumn B with respected of individual month (dd-mm--yy) in column A?


please advise.
 
Yes, the table shown exacts what I need.
do i have to include the date shown in F1 or i can actually just indicate the month, such as jan, feb, etc thought my data given in coloum b is with date-month-year
?

You can just put say Jan in F1...

Group
DATE
Amount
Jan
Beta
1-Jan-13
$4.00
Beta
11
Beta
1-Feb-13
$4.00
Delta
0
Beta
2-Jan-13
$3.00
Delta
3-May-13
$4.00
Delta
11-Jun-13
$5.00
Beta
1-Jan-13
$4.00
Delta
1-Feb-13
$4.00

<TBODY>
</TBODY>

F2, copied down:

=SUMPRODUCT($C$2:$C$8,--($A$2:$A$8=$E2),--($B$2:$B$8-DAY($B$2:$B$8)+1=("1-"&F$1)+0))

This treats Jan F1 as a month of the current year.
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
I've try with the formula by :
=SUMPRODUCT(Internal!K5:K10,--(Internal!G5:G15=$A6),--(Internal!N5:N10-DAY(Internal!N5:N10)+1=("1-"&B$5)+0))
Whereby K5 : K10 is the colomn for amount
G5 : G15 is my list if group, beta, delta
A6 = Delta
N5 : N10 is my date : 1-Jan-2013 (for example)
and
B5 = Jan

But shown me #value as my answer
 
Upvote 0
I've try with the formula by :
=SUMPRODUCT(Internal!K5:K10,--(Internal!G5:G15=$A6),--(Internal!N5:N10-DAY(Internal!N5:N10)+1=("1-"&B$5)+0))
Whereby K5 : K10 is the colomn for amount
G5 : G15 is my list if group, beta, delta
A6 = Delta
N5 : N10 is my date : 1-Jan-2013 (for example)
and
B5 = Jan

But shown me #value as my answer

N5:N10 must be true dates;
G5:G10 must house group values like Delta, etc.
K5:K10 must house numbers we can sum.

A6: Delta
B5: Jan

In B6 enter:

=SUMPRODUCT(Internal!$K$5:$K$10,--(Internal!$G$5:$G$10=$A6),--(Internal!N5:N10-DAY(Internal!$N$5:$N$10)+1=("1-"&B$5)+0))

should work as intended.
 
Upvote 0

Forum statistics

Threads
1,217,391
Messages
6,136,324
Members
450,005
Latest member
BigPaws

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
Back
Top