xlookup value in lookup array of 3 different columns (in separate workbook)

memerich

New Member
Joined
Feb 15, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am trying to use xlookup formula in "Recruit-Tracking" workbook to lookup a value (a unique email address in column G) within that workbook and look for that value which could be contained in any of 3 columns (Email (G), Alt Email (H) or Alt Email2 (I) in a different workbook calls "LEADS MASTER". If found, return the value under the "Lead Source" (C) of LEADS workbook into "Recruit Tracking" (also column C). If not found, return "Not on LEADS".

Here is the formula that works ONLY IF the email address is found in the primary email column (G).
=XLOOKUP([@Email],'[LEADS MASTER.xlsx]LEADS MASTER'!$G:$G,'[LEADS MASTER.xlsx]LEADS MASTER'!$C:$C,"Not on LEADS").

Not sure if I need to use multiple xlookups to handle each column I am attemtping to look it up from, as I cannot find syntax to say "look for it in Column "G, "H", OR "I"

I apologize but my spreadsheet contains sensitive data, so I am unable to post the data without recreating it first.

Thanks to all.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
maybe you could use this? Note this only works when there is only 1 instance of a search value in any of the 3 columns.

Leads Master.xlsx
CGHI
1Lead SourceEmailAlt EmailAlt Email2
2Value1123456456789789456
3Value2123457456790789457
4Value3123458456791789458
5Value4123459456792789459
6Value5123460456793789460
7Value6123461456794789461
8Value7123462456795789462
9Value8123463456796789463
10Value9123464456797789464
11Value10123465456798789465
LEADS MASTER


Recruit-Tracking.xlsx
BC
1EmailColumn1
2456789Value1
3456790Value2
4456791Value3
5456792Value4
688888Not on LEADS
7123461Value6
8123462Value7
9789458Value3
10789459Value4
11789460Value5
Sheet1
Cell Formulas
RangeFormula
C2:C11C2=IF(SUMPRODUCT(--('Leads Master.xlsx'!$G$2:$I$11=[@Email]))=0,"Not on LEADS",INDEX('Leads Master.xlsx'!$C$2:$C$11,SUMPRODUCT((--('Leads Master.xlsx'!$G$2:$I$11=[@Email]))*(ROW('Leads Master.xlsx'!$C$2:$C$11)-ROW('Leads Master.xlsx'!$C$2)))+1))
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=filter('[LEADS MASTER.xlsx]LEADS MASTER'!$C:$C,('[LEADS MASTER.xlsx]LEADS MASTER'!$G:$G=[@Email])+('[LEADS MASTER.xlsx]LEADS MASTER'!$H:$H=[@Email])+('[LEADS MASTER.xlsx]LEADS MASTER'!$I:$I=[@Email]),"Not on LEADS")
 
Upvote 0
Solution
Hi & welcome to MrExcel.
How about
Excel Formula:
=filter('[LEADS MASTER.xlsx]LEADS MASTER'!$C:$C,('[LEADS MASTER.xlsx]LEADS MASTER'!$G:$G=[@Email])+('[LEADS MASTER.xlsx]LEADS MASTER'!$H:$H=[@Email])+('[LEADS MASTER.xlsx]LEADS MASTER'!$I:$I=[@Email]),"Not on LEADS")
This works awesome! Thank you so much.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,303
Members
449,078
Latest member
nonnakkong

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