All instances of a value tied to a specific entry across multiple sheets

Skrej

Board Regular
Joined
May 31, 2013
Messages
176
Office Version
  1. 365
Platform
  1. Windows
I have multiple sheets, one for each month, named Jan, Feb, Mar, etc. On each sheet in Col A is a list of names. Some of those names repeat over various months, while some drop off the list and new names are added. The names are always in Col 1, but the number of rows with names in Col A is dynamic (although a maximum of about 30), and since the list is alphabetized, the same name may not necessarily appear in the same row each month. However, names always start in A3.

Col B-M contain a dropdown list which allows only three values ('P', 'A', or "E").

On a separate "Summary" page, I would like to count all instances across all months that each given name has an entry of 'A". For example, if Bob has 3 'A' entries in Jan, two 'A' in Feb, and 4 in Mar, but drops off the list in Apr, his name has count of 9. Let's say the list of names on 'Summary' starts in A3, with the corresponding count starting in B3.

I know how to gather a unique list of names, =UNIQUE(FILTERXML("<A><B>"&TEXTJOIN("</B><B>",TRUE,Jan!A1:A100,Feb!A1:A100,Mar!A1:A100)&"</B></A>","//B")) (I shortened the formula to just three months for brevity), but I'm uncertain how to index and match the names and 'A' count across sheets when 'Bob' may appear in different rows from month to month.

I suspect this is some combination of vlookup and Index with Match, but I could use some help stringing it together.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
How about
Excel Formula:
=LET(d,VSTACK(Jan:Dec!A3:M50),n,INDEX(d,,1),u,UNIQUE(FILTER(n,n<>"")),HSTACK(u,BYROW(u,LAMBDA(br,SUMPRODUCT((INDEX(d,,1)=br)*(d="A"))))))
 
Upvote 1
Solution
Thank you, that seems to do the trick. It's a bit beyond my understanding, but at least I can figure out how to adapt ranges if I add more columns.

If someone uses an older version of Excel, would these still work?
 
Upvote 0
Is there a way to retro proof it? I need to share the sheet with users who may or may not be using 365, at least back a few versions?
 
Upvote 0
The only way I can think of doing it would be to use a sumproduct for each & every sheet.
But the formula you posted will only work with 2021 & 365
 
Upvote 0
Hmm. I will play with that. With only twelve maximum sheets, that might not prove too unwieldy. I might be able to do some of the calculations on a hidden sheet or something to keep it tidier.

I thought about VBA but ruled that out since so many institutions have IT restrictions on running macros and such.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,154
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top