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

D

dbglass

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

Peo Sjoblom

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
 
D

dbglass

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
 
Top