Need to return column header when a value is found in a table in different worksheets.

ironmaiden666

New Member
Joined
Oct 25, 2016
Messages
1
I work for a B2B tech company. I have a database of business contacts with their company names, phone numbers and other contact information (Sheet 1). I have separate files which has details about companies and what each is looking to purchase technology-wise. I want to merge these files into one file in such a way that I can see against my contacts, what technology solutions their companies are planning to buy. This will really help sales efforts.

The underlying logic I think I need to use is this: "If [Name of Company] is found anywhere in a table with multiple columns in Sheet 2/3/4, return the column header in sheet 1". I will demonstrate in a table below what I'm looking for. I need to fill in the italicized parts:

Sheet 1

Contact NameCompanyPhoneEmailCompany Revenue (from sheet 2)Agent Analytics (from Sheet 3)Cloud Solutions (from Sheet 4)
Person 1A$10bn+Immediately6-12 months
Person 2B$10bn+6-12 monthsImmediately

<tbody>
</tbody>

Sheet 2 - Company Revenue

$10bn+$5-10bn$1-5bn$500mn-1bn<500mn
AEKPV
BFLQW
CGMRX
DHNS
IOT
JU

<tbody>
</tbody>

Sheet 3 - Agent Analytics Solutions

Immediately6-12 months12-24 months
AGM
DCI
FBU
XS

<tbody>
</tbody>
Sheet 4 - Cloud Solutions

Immediately6-12 months12-24 months
BQL
HAP
WDT
XF

<tbody>
</tbody>

Can someone please help me with this? I have tried so many options but I keep making mistakes :)
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,214,952
Messages
6,122,457
Members
449,083
Latest member
Ava19

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