Aggregate data from 2 sheets with conditions

virtuosok

Board Regular
Joined
Sep 2, 2020
Messages
209
Office Version
  1. 365
Platform
  1. Windows
Hi,
Let me know if it's better if I post sample data on Google Drive as it's a bit complicated.
I have several tabs as follows, let's assume each has 300 rows with data. Tab Summary has names in column J (I deleted some of the sensitive info).
1632909673822.png

Then I have separate tabs for each study mentioned in column A above. Let's assume I have 3 tabs, named Pt1, Pt2, Pt3 respectively for PD001, PD002, PD003. They provide more detail about each site # listed in column B above.
These individual tabs go as follows, see site # in column N below => same numbering as in column B above:
1632909895832.png

What I would need please, is a formula which returns for each of individuals listed in column J on first screenshot:
- total # of screens (see column Q in 2nd screenshot) for each of the studies, across all assigned sites (see column B in 1st screenshot vs column N in 2nd screenshot)

Individual study tabs are having a bit different outline (I'll need to fine tune column IDs for each), and that's the main reason why I need a separate formula for each study...
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,214,832
Messages
6,121,845
Members
449,051
Latest member
excelquestion515

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