I have a table that looks like this:
ABCD FirstName SurnameName Address UniqueFamilyId --------------------------------------------------------- Abe Black 1 Elm Ave :Black:1 Elm Ave: Joe Doe 7 Park Ln :Doe:7 Park Lane: Jack Black 1 Elm Ave :Black:1 Elm Ave: Bill Doe 2 5th Ave :Doe:2 5th Ave: Harry Doe 7 Park Ln :Doe:7 Park Lane: Sam Doe 7 Park Ln :Doe:7 Park Lane:
I created a UniqueFamilyId column to truly identify each family.
I am trying to develop a formula that will collect the first names of all those who live at the same address in one cell, i.e. one that populates column E (AllFirstNames).
ABCDE FirstName SurnameName Address UniqueFamilyId AllFirstNames ------------------------------------------------------------------------------- Abe Black 1 Elm Ave :Black:1 Elm Ave: Abe Jack Joe Doe 7 Park Ln :Doe:7 Park Lane: Joe Harry Sam Jack Black 1 Elm Ave :Black:1 Elm Ave: Abe Jack Bill Doe 2 5th Ave :Doe:2 5th Ave: Bill Harry Doe 7 Park Ln :Doe:7 Park Lane: Joe Harry Sam Sam Doe 7 Park Ln :Doe:7 Park Lane: Joe Harry Sam
I suspect that a mixture of vlookup and array formulas will do the trick, but if I have to use Excel VBA or Google Apps scripts, I don't mind. Can you please help me with this?
I assume that this is some form of finding all the values ββin column D (UniqueFamilyId) that are the same, and then using vlookup to get the first name, everything in the array formula, to collect them all.
PS I developed how to calculate how many of them live in each address - the formula is simple
=COUNTIF(D$1:D$65536,D1)
but I want all these names to be collected, and not just an account.
source share