Count number of occurences

collinsc

Board Regular
Joined
Sep 13, 2006
Messages
240
Hi All

At work we have a score prediction comp. 1-1 is the most common picked score and so a rule has been set that you cannot pick this score line more than 6 times.

He types all the scores in in columns i.e.

wat v man u 1-1 2-0 3-1
man c v che 1-0 2-1 4-0

How can i set it so that it notifies him that more than 6 occurences of 1-1 have been entered in a column?

Thanks!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi,

Go to Format > Conditional Formatting > Formula Is

=(LEN(A1)-LEN(SUBSTITUTE(A1,"1-1","")))/3>6

change the format.

HTH
 
Upvote 0
Hi Collinsc

Kris's formula works for me - are all the scores entered into the same column? Did you amend the format to be applied if the condition was met (eg colouring the cell red)?

Richard
 
Upvote 0
most odd... yes and yes to both of those...
it is written as "text" does that make a difference?
 
Upvote 0
sorry to re-open this thread-
i left this sheet for a while- to concentrate on my pivot nightmare!
i still cant do this... does it matter that it is formatted as text?
 
Upvote 0
Hi,

Kris's formula works provided the entire string is in the cell. If the scores are in different cells spanning across the columns then perhaps something like:
Code:
=COUNTIF(B2:J2,"1-1")>6
Where the scores are inputted between column B and J (adjust ranges to suite). Again to be applied using conditional formatting.

Regards,
Jon
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,984
Members
449,058
Latest member
oculus

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