Percentage Count Formula Needed

olimajor123

Board Regular
Joined
Nov 13, 2013
Messages
72
Hi.

I have a spreadsheet which tracks football predictions with a score being allocated to each game depending on whether or not the predicted result was correct. If the resulted predicted is incorrect, the cell says 0, whereas if it is correct is has a number of points won in it (which varies). I am looking for a formula to work out the percentage of matches where points for correct guesses have been scored, ie I need it to count the number of matches and count the number of games that aren't zero and divide it by the total number of matches (both where points were scored and where no points were scored). Please can you help.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
If I'm reading your question correctly, you want to use =COUNT and =COUNTIF

So, to calculate the number of matches played: =COUNT([Score Column]). This will look down the score column and only count cells with numbers in them, ignoring blanks and text cells.

For the number of correct predictions: =COUNTIF([Predictions Column],">0"). This will look down the predictions column and only count values over 0. Again, this ignores blanks and text.


For the percentage of predictions correct roll them all into one formula:

=COUNT([Score Column])/COUNTIF([Prediction Column},">0").
 
Upvote 0
Thanks. I had to swap them around so I had =COUNTIF(R13:R122,">0")/COUNT(R13:R122) but then it worked. Cheers
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,487
Members
452,917
Latest member
MrsMSalt

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