ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   countif (https://www.excelbanter.com/excel-worksheet-functions/191310-countif.html)

mikesteven

countif
 
I have first names listed is column "A" and last names listed in column "B".
I have a counif statement in column "C" giving me a total count of each name
using last name. Example-countif(B2:B300,"jones"). I have run into a problem
where people have the same last name and now I need to use the first name
with the last name to get the count. How can I set up my counif statement to
use the first and last name and then give me a count total. I tried
countif(B2:B300,"jones")+ countif(a2:a300,"steve"). This did not work. Any
help would be appreciated.

Thanks,



Don Guillett

countif
 
=sumproduct((a2:a22="bill")*(b2:b22="jones"))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"mikesteven" wrote in message
...
I have first names listed is column "A" and last names listed in column
"B".
I have a counif statement in column "C" giving me a total count of each
name
using last name. Example-countif(B2:B300,"jones"). I have run into a
problem
where people have the same last name and now I need to use the first name
with the last name to get the count. How can I set up my counif statement
to
use the first and last name and then give me a count total. I tried
countif(B2:B300,"jones")+ countif(a2:a300,"steve"). This did not work. Any
help would be appreciated.

Thanks,





All times are GMT +1. The time now is 11:07 PM.

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