Excel Match Formula

Robert_Conklin

Board Regular
Joined
Jun 19, 2017
Messages
173
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I need an excel formula that will match the name from column E from the first spreadsheet to the name in column C from the second spreadsheet (both in the same workbook) and return the value in column D from the second spreadsheet.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
The vlookup function will not work because my arrays are on two different spreadsheets, and the data I need returned is in a different column. Here is what I need in a nutshell. I have a list of users and a giant list of users, company wide that contains a Global ID and an Active Directory ID. I need to match the names from my list to the giant list of users and return the Global ID to my list. I can then modify the formula to return the Active Directory ID to another column
 
Upvote 0
The vlookup function will not work because my arrays are on two different spreadsheets
Not sure what problem you envisage using two different sheets?

Robert_Conklin 2020-03-04 1.xlsm
CDE
1UserGlobal IDActive Directory ID
2Name 1ID 1456x
3Name 5ID 5ygf
4Name 3ID 3sd4
5Name 2ID 2fgh
Giant List


Robert_Conklin 2020-03-04 1.xlsm
EFG
1NameGlobal IDActive Directory ID
2Name 1ID 1456x
3Name 7Not foundNot found
4Name 5ID 5ygf
List
Cell Formulas
RangeFormula
F2:F4F2=IFERROR(VLOOKUP(E2,'Giant List '!C$1:D$5,2,0),"Not found")
G2:G4G2=IFERROR(VLOOKUP(E2,'Giant List '!C$1:E$5,3,0),"Not found")
 
Upvote 0
My sheet has specific users. The giant sheet contains all users across our company. I only need the Global IDs and the Active Directory IDs for the names on my list. Rather than search each name individually, it would be much faster using a formula. The giant sheet was provided to me from another source.
 
Upvote 0
it would be much faster using a formula.
I gave you a formula. In what way does it not satisfy your needs?
My sample 'Giant List' sheet contains users across all the company. My 'List' sheet contains the names on my list. The formulas have retrieved the 2 sets of data for those on my list as far as I can tell.

Perhaps you could make up a small set of dummy data for each sheet and show those, using XL2BB so we can copy to test with. Also include the expected results so we actually know what you want since trying to interpret what you have said so far apparently hasn't been clear enough to me.

BTW, I also suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version.
 
Last edited:
Upvote 0
I apologize. I thought you were asking me a question. I will work with those formulas today and let you know.

Thank you.
 
Upvote 0
I tried a modified formula to encompass the actual arrays:

=IFERROR(VLOOKUP(E:E,'Company Wide Global ID & AD ID'!A:A,2,0),"Not found")

Even though I looked up a couple of the names to see if they were on the giant list, which they were, it still brought back 'Not Found'.
 
Upvote 0
I played around with the Index/Match combo and developed the following that worked:

=INDEX(Table15[Global ID],MATCH([@Name],Table15[Name],0))

Thank you for all of your help!
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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