ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Column count if's (https://www.excelbanter.com/excel-discussion-misc-queries/247411-column-count-ifs.html)

Rusty

Column count if's
 
I have a column with employee code numbers. ie. A23,A34,A54,B43,B63,C23. They
are always a capital letter ans a 2 digit number. I need to build a formula
for a range that tells me how many employees there are that start with and
"A", a "B", a "C" and so on. Can someone help me with this? Thanks
--
rustyrunrite

FloMM2

Column count if's
 
Rusty,
This is what I came up with:
Add a helper column to left of list of employee numbers.
To total emploee numbers with "A"
"=COUNTIF($B$1:$B$3,"A1") in cell to left of
this formula I put "A".
My list of employee numbers is in cell B1 thru B6, I used the numbers you
provided
A23, A34, A54, B34, B63, C23

To total emploee numbers with "B"
"=COUNTIF($B$4:$B$5,"B1") in cell to left of
this formula I put "B".


To total emploee numbers with "C"
"=COUNTIF($B$6:$B$6,"C1") in cell to left of
this formula I put "C".

It should look like this:

A23
A34
A54
B43
B63
C23
"A" 6
"B" 2
"C" 1

hth

"Rusty" wrote:

I have a column with employee code numbers. ie. A23,A34,A54,B43,B63,C23. They
are always a capital letter ans a 2 digit number. I need to build a formula
for a range that tells me how many employees there are that start with and
"A", a "B", a "C" and so on. Can someone help me with this? Thanks
--
rustyrunrite


John[_22_]

Column count if's
 
Hi Rusty
You can use countif with a wildcard e.g:=COUNTIF(A1:A500,"A*")
Adjust range and letter to your needs.
HTH
John
"Rusty" wrote in message
...
I have a column with employee code numbers. ie. A23,A34,A54,B43,B63,C23. They
are always a capital letter ans a 2 digit number. I need to build a formula
for a range that tells me how many employees there are that start with and
"A", a "B", a "C" and so on. Can someone help me with this? Thanks
--
rustyrunrite




All times are GMT +1. The time now is 02:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com