Finding multiple related contacts using VLOOKUP/INDEXMATCHING and returning phone number, email etc.

moodoggy

New Member
Joined
Jan 13, 2017
Messages
4
Hi everyone,

I just wanted to say thank you in advance for your time and help.

I have been tasked with sorting through 4,000 contacts and finding the telephone and mobile numbers and emails of any contacts that are related to a certain Account from a great list of 450. This relationship is determined by either direct reference to a certain Account Name in the Accounts or a cell in the FullName, Job Title, Organisation or notes column contains the Account Name in it.

I have tried VLOOKUP and MATCHING and INDEXING but have not been able to get it to find what I need. The primary issue is that 5 different contacts may be linked to one single Account (either found in their job title, organisation or whatever), and therefore I need to return multiple phone numbers, emails and other information that are linked to the 5 different contacts. VLOOKUP only found one contact and I have tried many different MATCHING and INDEXING solutions from examples and help sites but cannot get it to work.

Please see an example template of my contacts and the Accounts tab. There are obviously more and this data is fake.


ACCOUNTS
FirstNameLastNameFullNameAccount NameJob TitleOrganisation
NotesPhoneEmail
AboudChrisArmstrongChris ArmstrongRedleyCEO at Capers LtdCapters04 3738 9873test@gmail.com
AndrewsChristineAaronsChristine Aarons5 3738 9873test@gmail.com
FrazerStevenAboudSteven Aboud6 3738 9873test@gmail.com
AndrewsMichaelAbelesMichael AbelesAbelesLittleman Ltd7 3738 9873test@gmail.com
ArmstrongAndrewFairlightAndrew FairlightFairlightExecutive ChairmanAbercrom Ltd8 3738 9873test@gmail.com
HunterRussellAndrewsRussell AndrewsGEY Ltd9 3738 9873test@gmail.com
etcAllanderAboudAllander Aboud10 3738 9873test@gmail.com
etcGeorgeAbrahamGeorge AbrahamGround Investments11 3738 9873test@gmail.com
etcChrisAbryChris AbryAbryHead of ResearchInvestee Corp12 3738 9873test@gmail.com
etcMenzieAcharyaMenzie AcharyaCarline Venture13 3738 9873test@gmail.com
etcJoshDrickayaJosh DrickayaDrickayaSenior Portfolio ManagerRiver Capital14 3738 9873test@gmail.com
etcRobertAdleeRobert AdleeHargravesChief Executive OfficerParks Investment15 3738 9873test@gmail.com
etcKimDryerKim DryerDryerOffice Manager/ EA to Robert EllLeda Capital16 3738 9873test@gmail.com
etcMichelleHunterMichelle HunterCasterPersonal Assistant to Chairman & CEOMerene Group17 3738 9873test@gmail.com

<tbody>
</tbody>
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
What are the expected outcomes using your sample data above?
Please first note that the Accounts column is not linked to any rows and is just a LIST of the accounts.

For the output, say "Aboud" is contained in a long paragraph of Michelle Hunter's notes, Allander Aboud and Chris Aboud have the last name "Aboud" and George Abraham is the CEO of "Aboud's" Investment Team (not in the example above but should be). The expected outcome would be for Michelle's, Allander's, Chris's and Georges Full Name to be outputted, and in the same row, have their mobile numbers, telephone numbers and emails outputted.
I can then get in contact with these individuals that are somehow related to the Aboud Account.
 
Upvote 0
There is no notes column in your sample data. What we need is a properly REPRESENTATIVE sample of your raw data AND some expected outcomes in a table. You are leaving too much to our imagination at present. :)
 
Upvote 0
There is no notes column in your sample data. What we need is a properly REPRESENTATIVE sample of your raw data AND some expected outcomes in a table. You are leaving too much to our imagination at present. :)

Sorry for my naivety. First time posting on a Forum to get help with Excel.

Updated Table

ACCOUNTS
FirstNameLastNameFullName
Account NameJob Title
Organisation
NotesPhoneEmail
Aboud
Chris ArmstrongChris ArmstrongRedleyCEO at Capers LtdCaptersPrincipal of Aboud Family04 3738 9873Chris .Armstrong@gmail.com
AndrewsChristineAaronsChristine Aarons5 3738 9873Christine.Aarons@gmail.com
FrazerStevenAboudSteven Aboud6 3738 9873Steven.Aboud@gmail.com
AndrewsMichaelAbelesMichael AbelesAbelesLittleman LtdMet with Michael on 13/09/157 3738 9873Michael.Abeles@gmail.com
ArmstrongAndrewFairlightAndrew FairlightFairlightExecutive ChairmanAbercrom Ltd8 3738 9873Andrew.Fairlight@gmail.com
HunterRussellAndrewsRussell AndrewsChairman of Aboud Investments9 3738 9873Russell.Andrews@gmail.com
GeorginaAllanderAboudAllander AboudDaughter of Steven Aboud10 3738 9873Allander.Aboud@gmail.com
ChryslerGeorgeAbrahamGeorge AbrahamGround Investments11 3738 9873George.Abraham@gmail.com
VertanaChrisAbryChris AbryAboudHead of ResearchInvestee Corp12 3738 9873Chris.Abry@gmail.com
ReagalMenzieAcharyaMenzie AcharyaCarline VentureEx Chairman of Aboud Investments13 3738 9873Menzie.Acharya@gmail.com
JoshDrickayaJosh DrickayaDrickayaSenior Portfolio ManagerRiver Capital14 3738 9873Josh.Drickaya@gmail.com
RobertAdleeRobert AdleeHargravesChief Executive OfficerParks Investment15 3738 9873Robert.Adlee@gmail.com
KimDryerKim DryerDryerOffice Manager/ EA to Robert EllLeda CapitalMet with Kim, interested in investing in new technology16 3738 9873Kim.Dryer@gmail.com
MichelleHunterMichelle HunterCasterPersonal Assistant to Steven Aboud
Merene Group17 3738 9873Michelle.Hunter@gmail.com

<colgroup><col><col><col span="2"><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>


Expected Outcomes (Highlighted cells indicate the cell that contains "Aboud")

FullName
Account NameJob TitleOrganisationNotesPhoneEmail
Chris ArmstrongCEO at Capers LtdCaptersPrincipal of Aboud Family
04 3738 9873Chris .Armstrong@gmail.com
Steven Aboud
6 3738 9873Steven.Aboud@gmail.com
Russell AndrewsChairman of Aboud Investments
9 3738 9873Russell.Andrews@gmail.com
Allander Aboud
Daughter of Steven Aboud
10 3738 9873Allander.Aboud@gmail.com
Chris AbryAboud
Head of ResearchInvestee Corp12 3738 9873Chris.Abry@gmail.com
Menzie Acharya
Carline VentureEx Chairman of Aboud Investments
13 3738 9873Menzie.Acharya@gmail.com

<colgroup><col><col><col span="2"><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
@moodoggy

Let A:J of Sheet1 house the sample you posted, including the headers in the first row.

A:K of Sheet2 houses the processing...

Aboud3
IDXACCOUNTSFirstNameLastNameFullNameAccount NameJob TitleOrganisationNotesPhoneEmail
1AboudChrisArmstrongChris ArmstrongRedleyCEO at Capers LtdCapters04 3738 9873test@gmail.com
3FrazerStevenAboudSteven Aboud6 3738 9873test@gmail.com
7etcAllanderAboudAllander Aboud10 3738 9873test@gmail.com

<tbody>
</tbody>

A1 houses an item of interest.

In B1 control+shift+enter, not just enter:

=SUM(IF(MMULT(ISNUMBER(SEARCH(A1,Sheet1!$A$2:$K$15))+0,TRANSPOSE(COLUMN(Sheet1!$A$2:$K$15)^0)),1))

In A3 control+shift+enter, not just enter, and copy down:

=IF(ROWS($A$3:A3)>$B$1,"",SMALL(IF(MMULT(ISNUMBER(SEARCH($A$1,Sheet1!$A$2:$K$15))+0,TRANSPOSE(COLUMN(Sheet1!$A$2:$K$15)^0)),ROW(Sheet1!$A$2:$K$15)-ROW(Sheet1!$A$2)+1),ROWS($A$3:A3)))

In B3 just enter, copy across, and down:

=IF($A3="","",T(INDEX(Sheet1!$A$2:$K$15,$A3,MATCH(B$2,Sheet1!$A$1:$J$1,0))))
 
Upvote 0
@moodoggy

Let A:J of Sheet1 house the sample you posted, including the headers in the first row.

A:K of Sheet2 houses the processing...

Aboud3
IDXACCOUNTSFirstNameLastNameFullNameAccount NameJob TitleOrganisationNotesPhoneEmail
1AboudChrisArmstrongChris ArmstrongRedleyCEO at Capers LtdCapters04 3738 9873test@gmail.com
3FrazerStevenAboudSteven Aboud6 3738 9873test@gmail.com
7etcAllanderAboudAllander Aboud10 3738 9873test@gmail.com

<tbody>
</tbody>

A1 houses an item of interest.

In B1 control+shift+enter, not just enter:

=SUM(IF(MMULT(ISNUMBER(SEARCH(A1,Sheet1!$A$2:$K$15))+0,TRANSPOSE(COLUMN(Sheet1!$A$2:$K$15)^0)),1))

In A3 control+shift+enter, not just enter, and copy down:

=IF(ROWS($A$3:A3)>$B$1,"",SMALL(IF(MMULT(ISNUMBER(SEARCH($A$1,Sheet1!$A$2:$K$15))+0,TRANSPOSE(COLUMN(Sheet1!$A$2:$K$15)^0)),ROW(Sheet1!$A$2:$K$15)-ROW(Sheet1!$A$2)+1),ROWS($A$3:A3)))

In B3 just enter, copy across, and down:

=IF($A3="","",T(INDEX(Sheet1!$A$2:$K$15,$A3,MATCH(B$2,Sheet1!$A$1:$J$1,0))))


Hi Aladin,

Thank you very much for your thorough and excellent response!
I have got it working.

There is only one issue and sorry for not being clear before.

Instead of have "Aboud" at the top as a reference, I need to be able to reference "Aboud" from Column A in the below outcomes example. This will then allow me to auto-fill down all of the Account names which has been multiplied by 5 (in an attempt to get at least 5 contacts related to that Account).

Is there a better way of doing this so that it finds every contact that contains "Aboud" and further Accounts rather than just 5?

Acc Ref
FullNameJob TitleOrganisationNotesPhoneEmail
AboudChris ArmstrongCEO at Capers LtdCapters
Principal of Aboud Family04 3738 9873Chris .Armstrong@gmail.com
AboudSteven Aboud6 3738 9873Steven.Aboud@gmail.com
AboudRussell AndrewsChairman of Aboud Investments9 3738 9873Russell.Andrews@gmail.com
AboudAllander AboudDaughter of Steven Aboud10 3738 9873Allander.Aboud@gmail.com
AboudChris AbryHead of ResearchInvestee Corp12 3738 9873Chris.Abry@gmail.com
AboudMenzie AcharyaCarline VentureEx Chairman of Aboud Investments13 3738 9873Menzie.Acharya@gmail.com
Andrews
Andrews
Andrews
Andrews
Andrews
Frazer
Frazer
Frazer
Frazer
Frazer

<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,575
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top