Help with student ratings

taniab

New Member
Joined
Jun 8, 2015
Messages
42
I have cells that have data like

Cell 1 Con Con Con Con Con
Cell 2 Oft Con Som Con Som
They are codes for consistently, sometimes and often

I need a formula that will count the number of "Con"s in both cells,then the number of "Oft"'s etc. but they are separated by a space in cell 1 and cell 2.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
So I have the formula, now I need to know how to count it over two cells, not just one. Ie. AT the moment it is only counting based on the contents of O12, I need it to count for O12, P12 and Q12.

=(LEN(O12)-LEN(SUBSTITUTE(O12,"Con","")))/LEN("Con")+(LEN(O12)-LEN(SUBSTITUTE(O12,"Oft","")))/LEN("Oft")
 
Upvote 0
I got it working, but it's very messy, can someone simplify this for me?

=(LEN(P49)-LEN(SUBSTITUTE(P49,"Con","")))/LEN("Con")+(LEN(P49)-LEN(SUBSTITUTE(P49,"Oft","")))/LEN("Oft")+(LEN(Q49)-LEN(SUBSTITUTE(Q49,"Con","")))/LEN("Con")+(LEN(Q49)-LEN(SUBSTITUTE(Q49,"Oft","")))/LEN("OFt")+(LEN(R49)-LEN(SUBSTITUTE(R49,"Con","")))/LEN("Con")+(LEN(R49)-LEN(SUBSTITUTE(R49,"Oft","")))/LEN("Oft")+(LEN(S49)-LEN(SUBSTITUTE(S49,"Con","")))/LEN("Con")+(LEN(S49)-LEN(SUBSTITUTE(S49,"Oft","")))/LEN("Oft")+(LEN(T49)-LEN(SUBSTITUTE(T49,"Con","")))/LEN("Con")+(LEN(T49)-LEN(SUBSTITUTE(T49,"Oft","")))/LEN("Oft")+(LEN(U49)-LEN(SUBSTITUTE(U49,"Con","")))/LEN("Con")+(LEN(U49)-LEN(SUBSTITUTE(U49,"Oft","")))/LEN("Oft")+(LEN(V49)-LEN(SUBSTITUTE(V49,"Con","")))/LEN("Con")+(LEN(V49)-LEN(SUBSTITUTE(V49,"Oft","")))/LEN("Oft")+(LEN(W49)-LEN(SUBSTITUTE(W49,"Con","")))/LEN("Con")+(LEN(W49)-LEN(SUBSTITUTE(W49,"Oft","")))/LEN("Oft")
 
Upvote 0

Forum statistics

Threads
1,214,627
Messages
6,120,610
Members
448,973
Latest member
ChristineC

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