Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Excel question

Posted on 2014-01-23
Medium Priority
241 Views
Hi Experts,

Something that should be simple but I am struggling with :-)

I have in column A a list of names
I have in column B another list of other names

I want to count how many times the same names appear in column B when it matches a name in column A

added an excel in order to clarify

Hope that is clear enough

David
test.xlsx
0
Question by:dlan75
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 3
• 3
• 2
• +1

LVL 11

Assisted Solution

Angelp1ay earned 150 total points
ID: 39804186
You can use COUNTIFS:
``````=COUNTIFS(\$A\$1:\$A\$17,"David",\$B\$1:\$B\$17,"C")
``````
Solution.xlsx
0

LVL 18

Assisted Solution

Steven Harris earned 150 total points
ID: 39804189
COUNTIFS should work out.  Check the attached sheet.
EE-test.xlsx
0

LVL 23

Accepted Solution

NBVC earned 1200 total points
ID: 39804191
If you list David and Robert in A25:A26 and list C and D in B24:C24, then use formula:

=COUNTIFS(\$A\$1:\$A\$17,\$A25,\$B\$1:\$B\$17,B\$24)

copied to next column and down.

Alternatively, You can also add headers to the list and create a Pivot Table that will do the same summary quicker.
test-3.xlsx
0

LVL 12

Author Comment

ID: 39804210
Nice but how to make it work on a whole column? Not A1:A4 but \$A:\$A
0

LVL 18

Expert Comment

ID: 39804214
Same principle applies:

=COUNTIFS(A:A, "Criteria1", B:B, "Criteria2")
0

LVL 12

Author Comment

ID: 39804477
well this is what I thought but it is not working ...
0

LVL 23

Expert Comment

ID: 39804509
Make sure that the formula itself is not in column A or B...
0

LVL 12

Author Comment

ID: 39804565
it is not ! found a temporary workaround but would be easier to be able to select the entire column
0

LVL 18

Expert Comment

ID: 39804571
found a temporary workaround
Such as?

would be easier to be able to select the entire column
We provided that solution:

=COUNTIFS(A:A, "Criteria1", B:B, "Criteria2")
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
###### Suggested Courses
Course of the Month11 days, 13 hours left to enroll