Returning a count on matching IDs, under a specific condition

imnotblackimoj

New Member
Joined
Jun 7, 2018
Messages
1
Sheet 1
Sheet 2Sheet 3Sheet 4Sheet 5Sheet 6, Column 1Sheet 6, Column 2
SummaryLos AngelesSan FranciscoBakersfieldSan DiegoAll California Census TractsDo they have good tacos?
Los Angeles5432Y
San Francisco9876N
Bakersfield1234N
San Diego5678Y

<tbody>
</tbody>

I attempted to simplify the concept by providing a basic example of what I'm trying to do.

The above columns (A-F) are separate sheets in a workbook.

I want to paste unique values (census tracts) for each city in its respective sheet (B-D). I then would like those inputs to match census tracts numbers in Sheet 6, column 1, and return the count of "Y" in Sheet 6, Column 2 to Sheet 1, under the respective city name.


For example, if I were to drop all census tracts that fall within Bakersfield in its sheet, I'd like to be able to refer to my summary sheet to determine the number (count) of "good tacos/census tracts"

Horrible example, hopefully you get the concept.


EDIT:
Also,

COUNTIF as an intermediate step won't work because I'm going to replicate this workbook, and the number of variables/geographies will vary. For example, this example only uses a handful of cities, other sheets I create will have 50+ variables.
 
Last edited by a moderator:

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,214,787
Messages
6,121,565
Members
449,038
Latest member
Guest1337

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