+ Reply to Thread
Results 1 to 9 of 9

Advanced lookup formula

  1. #1
    Registered User
    Join Date
    01-21-2018
    Location
    houston, tc
    MS-Off Ver
    2016
    Posts
    4

    Advanced lookup formula

    Alright so I have two excel spreadsheets, Book 1 with name, userID and license field columns all populated. The other, Book 2 with just name and userID colums populated. I need to find a way to take the userID in Book 2, see if it exists in Book 1, it if does then return whatever value is in the license field. Whats the easiest way to accomplish this? Thank you in advance.
    Last edited by rich872; 01-21-2018 at 09:29 PM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help with formual

    try PowerQuery

    PowerQuery1
    PowerQuery2

  3. #3
    Registered User
    Join Date
    01-21-2018
    Location
    houston, tc
    MS-Off Ver
    2016
    Posts
    4

    Re: Need help with formual

    so no way to do this with a built in lookup function?

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,896

    Re: Advanced lookup formula

    I'm thinking you might be able to do this with Vlookup or Index/match. It would be helpful if you posted sample workbooks.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need help with formual

    Quote Originally Posted by rich872 View Post
    so no way to do this with a built in lookup function?
    You've Ex2016 so PowerQuery is built-in

  6. #6
    Registered User
    Join Date
    01-21-2018
    Location
    houston, tc
    MS-Off Ver
    2016
    Posts
    4

    Re: Advanced lookup formula

    Ok, I've attached two sample workbooks.
    Attached Files Attached Files

  7. #7
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Advanced lookup formula

    Hi all- Try this INDEX/MATCH lookup formula. Named Ranges: UserID = [Book1.xlsx]Sheet1!$B$2:$B$5 License = [Book1.xlsx]Sheet1!$C$2:$C$5
    Both workbooks should be open when defining the names (in Book2) (Name Manager on the Formulas tab) . Then Book1 can be closed.
    Please Login or Register  to view this content.
    Last edited by leelnich; 01-21-2018 at 11:23 PM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Advanced lookup formula

    In Book2 in C2 put this formula and pull it down:

    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  9. #9
    Registered User
    Join Date
    01-21-2018
    Location
    houston, tc
    MS-Off Ver
    2016
    Posts
    4

    Re: Advanced lookup formula

    YES!! That did it! Thanks so much leelnich!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. IF Formual
    By RichPee in forum Excel General
    Replies: 2
    Last Post: 02-01-2015, 08:04 AM
  2. I need a formual Please
    By 2nikki in forum Excel General
    Replies: 2
    Last Post: 05-31-2012, 06:07 PM
  3. if then else formual q
    By 3dognite in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-03-2011, 04:19 PM
  4. help with formual
    By dasher108 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2008, 10:13 AM
  5. when to use double (( in a formual
    By coalville in forum Excel General
    Replies: 2
    Last Post: 05-22-2008, 10:00 AM
  6. [SOLVED] Formual vs Value
    By mpeplow in forum Excel General
    Replies: 1
    Last Post: 11-07-2006, 07:06 PM
  7. what is mean by ^ in formual
    By khan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2005, 08:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1