Help - Xlookup to return email address based on name in Column A sheet 3

pixal

New Member
Joined
Jan 19, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to work out how to return the email address from the name found in sheet 3 column A if the name and email are found in sheet 2.

Name in column A is a formula to search if the name exists in sheet 1 and if does not exist then return name
Excel Formula:
=IF(COUNTIF(Sheet1!H:H, Sheet2!H2)=0, Sheet2!H2, "")

I now want to return the email address of this persons name from sheet 2 column I if the name in sheet 3 matches the name in sheet 2

Sheet 3 A2 if = Sheet 2 H then return sheet 2 I if that makes sense.

Help is appreaciated.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Opps worked it out, not Xlookup at all.

Excel Formula:
=INDEX(Sheet2!I:I, MATCH(Sheet3!A2, Sheet2!H:H, 0))
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,982
Members
449,201
Latest member
Lunzwe73

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