Count function required

M

mickbarry

Hi all,
Just wondering if there is a function which will count the number of
occurences of a character within a cell.
eg A1 contains "x-ab-c"
I want to know the number of hyphens in that cell (answer 2)

Has anyone come up against this one before?

Regards Mick Barry
Sydney
You don't need a parachute to skydive,
You only need a parachute to skydive twice...
 
M

mickbarry

Chip,
Very clever.
I did think that the Substitute would go close due to its ability to
look past the first occurrence.
However I was just not smart enough to come up with the answer.
Well done

Regards Mick Barry
If you give a man a match, he will be warm for a moment, but if you
light a man on fire, he will be warm for the rest of his life!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top