counting record based on month

aamir

Board Regular
Joined
Feb 17, 2010
Messages
116
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

Links? Where??
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.
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 :rolleyes:
 
Upvote 0
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)))
 
Upvote 0
its giving me #value error, btw the value in my Data G:G cell is % format.
 
Upvote 0
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)))
 
Upvote 0

Forum statistics

Threads
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.
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