Dear Excelforum community,
I am far from expert so this might be as simple as a function I don't know about.
I think the attached is self-explanatory, but in case you need a real-life example :
A, B and C would be 3 persons
a and b would be 2 restaurants
lines would be dates or 1 2 3...
A, B and C are most of the time in the same city, but sometimes they travel. When they are out of town, this is recorded with a 3.
I record every time A, B or C are going to either a or b restaurant. This is recorded with a 1.
Then I want to calculate a matrix of how many times A+B were in the same restaurant in the same day, then A+C, then B+C, etc... for 30+ people.
I already have that matrix.
now I want to know how many times they have been in town together. Meaning counting all the lines with no 3 in either pair, for all the pairs.
Final things will be easy, but will be to calculate a %age of times each pair have been to the restaurant the same day KNOWING they were both in town.
If A and B have been to the restaurant together 5 times over a period of 15 days, but B was out of town for 5 days during that period, then my final matrix will show AB : 5/10.
Bookmarks