Count Formula Help

Mighty Whites

New Member
Joined
Sep 18, 2008
Messages
49
Hi,

I have a workbook that contains daily scores as percentages (between 0% - 100%). If the score is greater than 90% then a 'hit' is recorded. What I need is a formula that will tell me how many hits we have had in any given month.

If you need any further information then please give me a shout.

Thanks in advance
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows
Hello,

assuming your dates are in A13 downwards, percentages are in B13 downwards.

In E12 enter 1 (for Jan) then in E13 enter

=SUMPRODUCT(--(MONTH($A$13:$A$16)=E12)*($B$13:$B$16>=90%))

copy E12 over and add 1 each time and copy E13 over.

Change refs as required.
 
Upvote 0

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Do you have a column where "Hit" is actually present? If so, a simple Pivot Table will give you the count. If no, you can use a Custom Field in a PT to get the same results

lenze
 
Upvote 0

texasalynn

Well-known Member
Joined
May 19, 2002
Messages
8,458
try this
=SUMPRODUCT(--($B$2:$B$44>90%),--(MONTH($A$2:$A$44)=MONTH(NOW())))

change to your layout references. Note sumproduct does not allow whole column references and the ranges must be the same size. (in Excel version 2003 and below)

HTH
 
Upvote 0

Weaver

Well-known Member
Joined
Sep 10, 2008
Messages
5,197
try this if your data goes over more than 1 year

=SUMPRODUCT(--(MONTH($A$1:$A$100)=MONTH(E1)),--(YEAR($A$1:$A$100)=YEAR(E1)),--($B$1:$B$100>90%))

dates in col A, Values in Colum B, month/year in E1, formula in F1
You can insert more months in column E and then copy the formula down
 
Upvote 0

Forum statistics

Threads
1,191,322
Messages
5,985,976
Members
439,994
Latest member
lalkelalke04

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