how to count first number in 5 digits in a column

fayez_MrExcel

Active Member
Joined
Oct 29, 2005
Messages
426
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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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)
 

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
If they are all 5 digit #s, this should work...

=SUMPRODUCT((A1:A100>=10000)*(A1:A100<20000))
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
57,446
Office Version
  1. 365
Platform
  1. Windows
Possibly this?

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

Forum statistics

Threads
1,181,730
Messages
5,931,701
Members
436,799
Latest member
BasOo

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
Top