how to count first number in 5 digits in a column

fayez_MrExcel

Active Member
Joined
Oct 29, 2005
Messages
437
Office Version
  1. 365
Platform
  1. Windows
How to count employee number that starts with 1 in a column. I have 5 digits employee number in column a1:a100
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
How to count employee number that starts with 1 in a column. I have 5 digits employee number in column a1:a100

If emp numbers are text...

=COUNTIF(Range,"1*")

Otherwise:

=SUMPRODUCT((LEFT(Range)+0=1)+0)
 
Upvote 0
If they are all 5 digit #s, this should work...

=SUMPRODUCT((A1:A100>=10000)*(A1:A100<20000))
 
Upvote 0
Possibly this?

Excel Workbook
ABCD
1Employee NumberCount Starting with 15
212345
315698
414568
526598
635742
711111
835560
915790
10
Count Employee Numbers
 
Upvote 0

Forum statistics

Threads
1,213,557
Messages
6,114,287
Members
448,562
Latest member
Flashbond

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top