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
  • Learn & ask questions
Solved

MS Excel Conditional Table Counts

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
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…

808 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