FORMULA for COUNTING #S STARTING WITH A 4 IN A RANGE 1 TO 100,000

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Need a formula for counting all the numbers starting with a 4 within a range
of 1 to 100,000.
 
One way

=SUMPRODUCT(--(LEFT(A1:A10000)="4"))

or if you meant that the range of numbers can be greater but you don't want
to count numbers starting with 4 that are greater than 100,000

=SUMPRODUCT(--(LEFT(A1:A10000)="4"),--(A1:A10000<=100000))


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com
 
Thank you, it works!
dbglass

Peo Sjoblom said:
One way

=SUMPRODUCT(--(LEFT(A1:A10000)="4"))

or if you meant that the range of numbers can be greater but you don't want
to count numbers starting with 4 that are greater than 100,000

=SUMPRODUCT(--(LEFT(A1:A10000)="4"),--(A1:A10000<=100000))


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com
 

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

Back
Top