S
shawnteojc
Hi everyone,
I have been pondering this for many days without being able to obtain
a solution. With the following sample data,
Table 1
City Country
Sydney Australia
Madrid Spain
Lisbon Portugal
Brisbane Australia
Tokyo Japan
Geneva Switzerland
Zurich Switzerland
Table 2
# of Visits Favorite Birthplace
2 Sydney Switzerland
1 Zurich Switzerland
4 Tokyo Australia
2 Brisbane Spain
3 Tokyo Japan
2 Lisbon Japan
3 Madrid Switzerland
1 Madrid Japan
3 Zurich Australia
I would like to calculate the number of entries where the number of
visits is either 2 or 3 AND that the Favorite City is not located in
the same Birthplace, ie. (3 Tokyo Japan) should not be considered but
(3 Madrid Switzerland) should?
Is it possible to use a combination of vlookup and sumproduct to
obtain the answer? If possible I would prefer not to add new columns
to Table 2.
Really appreciate any help. Thanks in advance.
Shawn
I have been pondering this for many days without being able to obtain
a solution. With the following sample data,
Table 1
City Country
Sydney Australia
Madrid Spain
Lisbon Portugal
Brisbane Australia
Tokyo Japan
Geneva Switzerland
Zurich Switzerland
Table 2
# of Visits Favorite Birthplace
2 Sydney Switzerland
1 Zurich Switzerland
4 Tokyo Australia
2 Brisbane Spain
3 Tokyo Japan
2 Lisbon Japan
3 Madrid Switzerland
1 Madrid Japan
3 Zurich Australia
I would like to calculate the number of entries where the number of
visits is either 2 or 3 AND that the Favorite City is not located in
the same Birthplace, ie. (3 Tokyo Japan) should not be considered but
(3 Madrid Switzerland) should?
Is it possible to use a combination of vlookup and sumproduct to
obtain the answer? If possible I would prefer not to add new columns
to Table 2.
Really appreciate any help. Thanks in advance.
Shawn