View Full Version : Need a Report Calculating Across Multiple Columns from Different Worksheets

2014-05-22, 05:24 PM
In my workbook, I have four worksheets that I am trying to work through the following problem. Those sheets are "Stakeholder Roster", "County Roles", "Agency List" and "Roles By Agency Count".

"Stakeholder Roster" contains column with about 1100 employees within 30 Agencies. There are then 20 columns for which each row/stakeholder can be assign multiple roles from a drop-down list of ~65 roles.

In the sheet "Roles By Agency Count", the Agency list is in column B; the 65 roles are across row 2. On this worksheet, I want to have the intersection of an Agency and a Role tell me how many times a role was assigned within a particular Agency in the "Stakeholder Roster" sheet. The challenge is that in the "Stakeholder Roster" sheet, the same role may appear in various columns (i.e., role X is not always listed down one column for all users; user 1 may have role # in column L while user 2 may have role # assigned in column P)..

I will gladly share the file with anyone who would like to see it for more context.

2014-05-31, 12:52 AM
He Mcgonma - can you pls share the file.. Thanks

2014-09-23, 10:52 AM
I think this is what you are requiring. http://superuser.com/questions/635425/excel-pivot-table-categorical-variables-the-same-in-multiple-columns-histogram (works in 2010)
Bit of a long way around but it gets the job done.

2014-09-29, 01:36 PM
If you add the countifs along with an ifelse formula, you could draw it out to work - another long way around it, but have used many times and works well (yeah, very similar to your idea vinod). You could also add it all to a Power Pivot data model, then calculate it all out there - have the data return into a table and it would work.