Returning a count on matching IDs, under a specific condition

imnotblackimoj

New Member
Joined
Jun 7, 2018
Messages
1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Sheet 1
[/TD]
[TD]Sheet 2[/TD]
[TD]Sheet 3[/TD]
[TD]Sheet 4[/TD]
[TD]Sheet 5[/TD]
[TD]Sheet 6, Column 1[/TD]
[TD]Sheet 6, Column 2[/TD]
[/TR]
[TR]
[TD]Summary[/TD]
[TD]Los Angeles[/TD]
[TD]San Francisco[/TD]
[TD]Bakersfield[/TD]
[TD]San Diego[/TD]
[TD]All California Census Tracts[/TD]
[TD]Do they have good tacos?[/TD]
[/TR]
[TR]
[TD]Los Angeles[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]5432[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]San Francisco[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]9876[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]Bakersfield[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1234[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]San Diego[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]5678[/TD]
[TD]Y[/TD]
[/TR]
</tbody>[/TABLE]

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

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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