Solved

MS Excel Conditional Table Counts

Posted on 2013-02-04
2
144 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
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…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now