counting record based on month

aamir

Board Regular
i have big sheet with lot of data and in column B there is date dd-mm-yy.

How can i count specific product (column A) based on date (column B) for each month) on sheet B.

Excel Facts

If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Try like this

=SUMPRODUCT(--(MONTH(B1:B100)=10),--(A1:A100="X"))

Example:

=SUMPRODUCT(--(Sheet1!A1:A1000=A1),--(MONTH(Sheet1!B1:B1000)=MONTH(B1)))

Example:

=SUMPRODUCT(--(Sheet1!A1:A1000=A1),--(MONTH(Sheet1!B1:B1000)=MONTH(B1)))

thanks thts working ..

i am using this formula

Code:
``=SUMPRODUCT([COLOR=Red]--(Data!\$G\$2:\$G\$500&"<"&98%)[/COLOR],--(Data!\$A\$2:\$A\$20000=\$A3),--(Data!\$I\$2:\$I\$20000=\$R\$2),--(MONTH(Data!\$B\$2:\$B\$20000)=MONTH(\$F\$1)))``
problem is in highlighted part, wht i want to do is if the value is less than 98% of cell value then sum otherwise don't consider this value. simple isn't it

Perhaps

=SUMPRODUCT(--(Data!\$G\$2:\$G\$500 < 0.98),--(Data!\$A\$2:\$A\$20000=\$A3),--(Data!\$I\$2:\$I\$20000=\$R\$2),--(MONTH(Data!\$B\$2:\$B\$20000)=MONTH(\$F\$1)))

its giving me #value error, btw the value in my Data G:G cell is % format.

All the ranges must be the same size. Try

=SUMPRODUCT(--(Data!\$G\$2:\$G\$20000 < 0.98),--(Data!\$A\$2:\$A\$20000=\$A3),--(Data!\$I\$2:\$I\$20000=\$R\$2),--(MONTH(Data!\$B\$2:\$B\$20000)=MONTH(\$F\$1)))

Replies
1
Views
447
Replies
3
Views
148
Replies
0
Views
217
Replies
13
Views
381
Replies
1
Views
285

1,202,901
Messages
6,052,448
Members
444,581
Latest member
naninamu

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.

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

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