Solved

MS Excel Conditional Table Counts

Posted on 2013-02-04
2
189 Views
Last Modified: 2013-02-04
Hi there,

My first question on EE!

I have a series of tables (see attached file) and I need to be able to  count the the number of times each value appears against their respective row headers and table footers.

For example - in the table there are Tables called 'Scenario 1', 'Scenario 2' and 'Scenario 3'.

I need to produce a Summary Tables that counts the number of times each number appears in all 3 scenario tables against the respective row and footer identifiers.

For example, in Scenario 1, the number 1 (see highlighted cells) is present as an E/L , as a P/M and as an E/T.
In Scenario 2, the number 1 is present as an P/M,  E/M and an E/T
In Scenario 3, the number 1 is present as a P/L, E/T and E/M.

What I really need is the for 'Summary' table to populate itself - so that I can change things around in the top 3 tables and try and balance out the Summary tables across the column headers.
Example.xlsx
0
Comment
Question by:totalcruise
2 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 38851562
This formula in D39 should give the correct results

=SUMPRODUCT(($D$5:$D$10=LEFT(D$38))*($E$11:$R$11=RIGHT(D$38))*($E$5:$R$10=$C39)+($D$16:$D$21=LEFT(D$38))*($E$22:$R$22=RIGHT(D$38))*($E$16:$R$21=$C39)+($D$27:$D$32=LEFT(D$38))*($E$33:$R$33=RIGHT(D$38))*($E$27:$R$32=$C39))

copy across and down - see attached

This assumes that all 3 tables are the same shape - if not then you can use a similar formula with 3 separate SUMPRODUCTS....

[Edit: 16 was missing from Summary table - I added it in]

regards, barry
Example-barry.xlsx
0
 

Author Closing Comment

by:totalcruise
ID: 38851731
Marvellous.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question