How can I count items if they are in a category in a separate set of items?
In a table, Column A contains the regions, Column B contains the countries in each region.
In another sheet I have a list of countries which are scheduled in different months.
I need to know how many times a country is scheduled for a month in each region, meaning I need a formula which can lookup if a country is in a region and count it if it is.
I would like to use the region-country table to count how many times a country in a region occurs.
Thank you for any response.
EDIT:
This is an Array formula and must be enter with Ctrl-Shift-Enter every time you edit it.
If you want to put a Region’s name in a cell, such as A1, you could then refer to that Named Range with the INDIRECT function.
e.g. if you put Region1 in A1, this formula would be equivalent to the one above.
This, of course is also an array formula.
BTW..If you are using SUM, you don’t need the Addition Operator within the parenthesis, you can just use a comma. If you want to use the Addition Operator then you don’t need the SUM function. It is redundant.
Click Here Before Posting Data or VBA Code —> How To Post Data or Code.
message edited by DerbyDad03