This is not an especially hard problem but it's not just a matter of "the formula" and the answer has to be very specific to how your file is organized, and we don't have those details.
From your screenshot it looks like you are using structured tables. The result is a lot easier if you refer to the table name instead of the sheet name that contains it. For example, if your table is called Table1, the count is
Table names are unique so this does not depend on which sheet it is on.
If you need more specific help please attach a sample file so we can see how your sheets are set up. See yellow banner at the top of the page.
Bookmarks