Counting Starting Digits

Q

Qban

I have a really interesting question to ask. I am running an experiment that
tests the accuracy of Benford's Law, a mathematical law that predicts how
often a number starts with a certain digit. I want to know if there is a
formula that can count the number of values in an array that start with some
digit "n" and return that value to another cell. I'm talking about tens of
thousands of numbers, so it would really, really help. Thanks.
 
R

Ron Coderre

Try this:
=SUMPRODUCT(--(LEFT(A1:A10000,1)="9"))

Counts the number of cells in the range A1:A10000 that start with the digit 9.

Does that help?

***********
Regards,
Ron
 

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