Counting Special Characters In a Cell - Getting Formula Error on Excel 2010

RuaanKraft

New Member
Joined
Sep 19, 2014
Messages
4
Hi Guys,

I've watched Videos and checked out your forums but I'm still not getting the formula to work! The following formula as example won't work in my Excel 2010:

=LEN(A7)-SUBSTITUTE(A7,"e",""))

In cell A7 I've got the Word "Agree"
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
What exactly do you mean by "won't work" - what happens?
 
Upvote 0
Oh - remove the last ) from the formula.
 
Upvote 0
LEN(A7) returns a number. SUBSTITUTE returns a text string. Your formula tries to do a numerical calculation. It's like asking excel to calculate the value for 5 minus "Agr"
 
Upvote 0
Hi Guys,

I've watched Videos and checked out your forums but I'm still not getting the formula to work! The following formula as example won't work in my Excel 2010:

=LEN(A7)-LEN(SUBSTITUTE(A7,"e",""))

In cell A7 I've got the Word "Agree"
You left out the part in red.
 
Upvote 0
Try

=LEN(A7)-LEN(SUBSTITUTE(A7,"e",""))

Still getting the formula error?

:(

formulaerror.PNG
 
Upvote 0
Do you happen to use the continental version of excel? If so, replace every comma with semicolon in the formula.
 
Upvote 0
Still getting the formula error?
What is the Excel delimiter between arguments in you locale... a comma like VoG and I suggested or a semi-colon? If it is a semi-colon, then try this...

=LEN(A7)-LEN(SUBSTITUTE(A7;"e";""))
 
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,554
Members
448,970
Latest member
kennimack

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