Avatar of Sonia Bowditch
Sonia Bowditch
Flag for Guernsey asked on

How to Lookup and Return a Unique Value

I have a spreadsheet which pulls in data from several queries.

Query 1 into RAW worksheet- User ID, User Name, Sign On Name, Application, Version, Function
Query 2 into Additional Data worksheet - ID, Name, Dept, Start Date, End Date, Last Logon, Password Change Freq, Password Change Date, Attempts, Company Status, Company

I then combine in a worksheet called User Analysis:

Company Name, User ID, User Name, Dept, Application, Version, Function Last Log On.
A VLOOKUP is used to find the Dept name using the User ID field.

The problem I am experiencing is VLOOKUP will not work to return Company and Last Log On as it will only find the first match and will then go no further.  I have tried INDEX and MATCH with the same result.

I would greatly appreciate any help.

I have attached an example of what I am trying to do.
Microsoft ExcelMicrosoft OfficeSpreadsheets

Avatar of undefined
Last Comment
Sonia Bowditch

8/22/2022 - Mon
Saurabh Singh Teotia

Workbook Missing..Can you attach your workbook please...
Sonia Bowditch

ASKER
Apologies, workbook now attached.

Thanks.
VLOOK-ERR.xlsm
ASKER CERTIFIED SOLUTION
Saurabh Singh Teotia

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Saurabh Singh Teotia

Enclosed is your workbook for your reference...

Saurabh..
VLOOK-ERR.xlsm
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Sonia Bowditch

ASKER
Thank you for such a quick response and a great answer.