Go Premium for a chance to win a PS4. Enter to Win

x
Solved

# Excel - complex multi cell count

Posted on 2014-03-20
Medium Priority
374 Views
Looking for a formula to provide a count of occurring items within excel.
Here is an example sheet layout:
Column A             Column B               Column C
Connectivity          Support                  Undetermined
Functionality         No Action                Request
Functionality         Support                  Malfunction
Connectivity          Support                   Malfunction
Connectivity          Support                 Undetermined
Functionality         Support                  Malfunction
(this continues for about 9500 rows)

Here are the results I'm trying to get: (answer can be in any column past "C")
Column XX            Column XX              Column XX             Column XX (this is the formula)
Connectivity          Support                  Undetermined       2
Connectivity          Support                  Undetermined       1
Functionality         Support                  Malfunction           2
Connectivity          Support                   Malfunction          1

These count numbers match the above scenario, but they will each be in the thousands once the formula is executed.
That's it.  Seemingly simple, but I do not have the time to work this out (work pressure? -ha!)
0
Question by:TwinCessna

LVL 24

Expert Comment

ID: 39942539
COUNTIFS should do it:

=COUNTIFS(A:A,F1,B:B,G1,C:C,H1)

With the search values in F1,G1,H1 put the formula in I1
Example.xlsx
0

LVL 24

Expert Comment

ID: 39942557
Earlier versions of excel then 2007 do not have COUNTIFS...

In which case use SUMPRODUCT:
=SUMPRODUCT(N(A:A=F1),N(B:B=G1),N(C:C=H1))

Though this will work far better without the full column refs:
e.g  =SUMPRODUCT(N(\$A\$1:\$A\$999=F1),N(\$B\$1:\$B\$999=G1),N(\$C\$1:\$C\$999=H1))
0

LVL 34

Expert Comment

ID: 39942660
Using the COUNTIFS function relies on you knowing the various combinations of the criteria.

How about a Pivot Table with a count for data values. This would then add the various combinations as they occur.

Thanks
Rob H
0

LVL 8

Accepted Solution

Naresh Patel earned 2000 total points
ID: 39942857
i have different approach -

Step 1 Combine all three column with "&"
Step 2 Find Unique Values
Step 3 Count its occurrence as summary.

As Author has 9500 row data

See Attached
Counts.xlsx
0

Author Closing Comment

ID: 39958943
All were good usable answers, but this is the one that worked best.  Thanks for your help.
0

## Featured Post

Question has a verified solution.

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

This article describes a serious pitfall that can happen when deleting shapes using VBA.
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
###### Suggested Courses
Course of the Month11 days, 2 hours left to enroll