excel - Count occurrences starting with a specific number (Benford's Law) -


i have table in excel countries , associated population counts. count how many times number starts 1, 2, ... 9. it's benford's law, school homework.

i tried nb.si or countif didn't work. tried convert numbers text nb.si didn't work better.

do have idea?

with data in column a, in b1 enter:

=left(a1,1) 

and copy down. in c1 enter:

=countif(b$1:b$20,row()) 

and copy down through c9

enter image description here


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -