Hey everyone
I hope someone can help me with the following.
I have a sheet with companies (Column A) and their subsidiaries(Column B) and the country where those sub sidiariesoperate (Column C). It looks something like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Company
[/TD]
[TD]Subsidiary
[/TD]
[TD]Location
[/TD]
[/TR]
[TR]
[TD]Company 1
[/TD]
[TD]A
[/TD]
[TD]US
[/TD]
[/TR]
[TR]
[TD]Company 1
[/TD]
[TD]B
[/TD]
[TD]JP
[/TD]
[/TR]
[TR]
[TD]Company 1
[/TD]
[TD]C
[/TD]
[TD]CH
[/TD]
[/TR]
[TR]
[TD]Company 2
[/TD]
[TD]D
[/TD]
[TD]FR
[/TD]
[/TR]
[TR]
[TD]Company 3
[/TD]
[TD]E
[/TD]
[TD]JP
[/TD]
[/TR]
[TR]
[TD]Company 3
[/TD]
[TD]F
[/TD]
[TD]JP
[/TD]
[/TR]
[TR]
[TD]Company 4
[/TD]
[TD]G
[/TD]
[TD]FR
[/TD]
[/TR]
[TR]
[TD]Company 4
[/TD]
[TD]H
[/TD]
[TD]US
[/TD]
[/TR]
[TR]
[TD]Company 4
[/TD]
[TD]I
[/TD]
[TD]UK
[/TD]
[/TR]
[TR]
[TD]Company 4
[/TD]
[TD]J
[/TD]
[TD]UK
[/TD]
[/TR]
[TR]
[TD]Company 4
[/TD]
[TD]K
[/TD]
[TD]UK
[/TD]
[/TR]
[TR]
[TD]Company 5
[/TD]
[TD]L
[/TD]
[TD]UK
[/TD]
[/TR]
[TR]
[TD]Company 5
[/TD]
[TD]M
[/TD]
[TD]US
[/TD]
[/TR]
[TR]
[TD]Company 5
[/TD]
[TD]N
[/TD]
[TD]US
[/TD]
[/TR]
[TR]
[TD]Company 5
[/TD]
[TD]O
[/TD]
[TD]US
[/TD]
[/TR]
</tbody>[/TABLE]
I use the COUNTIF function to determine the number of subsidaries per company withiin a given country. I do this by manually adjusting the range within the COUNTIF function. Is there a more easy way do this, by automatically determining the range per company. So as in the example, in the case of company 1 range A2:A4, company 2 A5, company 3 A6:A7, and so on.
Thanks in advance!
I hope someone can help me with the following.
I have a sheet with companies (Column A) and their subsidiaries(Column B) and the country where those sub sidiariesoperate (Column C). It looks something like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Company
[/TD]
[TD]Subsidiary
[/TD]
[TD]Location
[/TD]
[/TR]
[TR]
[TD]Company 1
[/TD]
[TD]A
[/TD]
[TD]US
[/TD]
[/TR]
[TR]
[TD]Company 1
[/TD]
[TD]B
[/TD]
[TD]JP
[/TD]
[/TR]
[TR]
[TD]Company 1
[/TD]
[TD]C
[/TD]
[TD]CH
[/TD]
[/TR]
[TR]
[TD]Company 2
[/TD]
[TD]D
[/TD]
[TD]FR
[/TD]
[/TR]
[TR]
[TD]Company 3
[/TD]
[TD]E
[/TD]
[TD]JP
[/TD]
[/TR]
[TR]
[TD]Company 3
[/TD]
[TD]F
[/TD]
[TD]JP
[/TD]
[/TR]
[TR]
[TD]Company 4
[/TD]
[TD]G
[/TD]
[TD]FR
[/TD]
[/TR]
[TR]
[TD]Company 4
[/TD]
[TD]H
[/TD]
[TD]US
[/TD]
[/TR]
[TR]
[TD]Company 4
[/TD]
[TD]I
[/TD]
[TD]UK
[/TD]
[/TR]
[TR]
[TD]Company 4
[/TD]
[TD]J
[/TD]
[TD]UK
[/TD]
[/TR]
[TR]
[TD]Company 4
[/TD]
[TD]K
[/TD]
[TD]UK
[/TD]
[/TR]
[TR]
[TD]Company 5
[/TD]
[TD]L
[/TD]
[TD]UK
[/TD]
[/TR]
[TR]
[TD]Company 5
[/TD]
[TD]M
[/TD]
[TD]US
[/TD]
[/TR]
[TR]
[TD]Company 5
[/TD]
[TD]N
[/TD]
[TD]US
[/TD]
[/TR]
[TR]
[TD]Company 5
[/TD]
[TD]O
[/TD]
[TD]US
[/TD]
[/TR]
</tbody>[/TABLE]
I use the COUNTIF function to determine the number of subsidaries per company withiin a given country. I do this by manually adjusting the range within the COUNTIF function. Is there a more easy way do this, by automatically determining the range per company. So as in the example, in the case of company 1 range A2:A4, company 2 A5, company 3 A6:A7, and so on.
Thanks in advance!