+ Reply to Thread
Results 1 to 8 of 8

looking for kind a vlookup with multiple search and compare criteria

  1. #1
    Registered User
    Join Date
    07-04-2016
    Location
    brussels
    MS-Off Ver
    2013
    Posts
    4

    looking for kind a vlookup with multiple search and compare criteria

    Hi,

    i'm having following problem:

    A functional role consists out of a set of application rights.
    I have a list of users with their application rights.
    I want to figure out if I can replace the users rights with a functional role.

    Example:
    Funct_Role_1 = Appl_Right_A, Appl_Right_B, Appl_Right_C
    Funct_Role_2 = Appl_Right_A, Appl_Right_D
    Funct_Role_3 = Appl_Right_D, Appl_Right_E

    If User1 has Appl_Right_A, Appl_Right_D, I would like VBA to point out the user can be given Funct_Role_2
    If User2 has Appl_Right_A, Appl_Right_D, and Appl_Right_E, I would like VBA to point out the user can be given Funct_Role_2 and Funct_Role_3

    Can anybody point me out if/how this can 'easily' be done in vba ?

    Thanks in advance.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: looking for kind a vlookup with multiple search and compare criteria

    How are you storing your data, which matches rights to users?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    07-04-2016
    Location
    brussels
    MS-Off Ver
    2013
    Posts
    4

    Re: looking for kind a vlookup with multiple search and compare criteria

    i have in sheet one:
    column A: application
    column B: Functional Roles
    column C: Application Rights

    in an other sheet i have per user the application rights.

    hope this helps ?

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: looking for kind a vlookup with multiple search and compare criteria

    Doesn't help much - are they stored as boolean values / numbers / text, in multiple columns / single column / comma delimited... what?

    An example workbook would really help.

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: looking for kind a vlookup with multiple search and compare criteria

    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.

  6. #6
    Registered User
    Join Date
    07-04-2016
    Location
    brussels
    MS-Off Ver
    2013
    Posts
    4

    Re: looking for kind a vlookup with multiple search and compare criteria

    ok, hopes the attachment makes it more clear. The first two sheets (input_role & input_app)are input sheets, the third one,
    is the expected result which i filled in manually ... It are all strings.

    Thanks for your time.
    Attached Files Attached Files

  7. #7
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: looking for kind a vlookup with multiple search and compare criteria

    Okay - this probably isn't the most efficient, but it works on your sample workbook:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    07-04-2016
    Location
    brussels
    MS-Off Ver
    2013
    Posts
    4

    Re: looking for kind a vlookup with multiple search and compare criteria

    Thanks, Olly!

+ 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/then & vlookup with running multiple search criteria
    By dhaase in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2016, 01:12 PM
  2. [SOLVED] if/then vlookup with multiple search criteria - new to Excel
    By dhaase in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 05-19-2016, 04:23 PM
  3. Using VLOOKUP to search multiple criteria IN ANY ORDER
    By denialcm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-20-2015, 12:38 PM
  4. Use VLOOKUP to search multiple criteria in any order
    By denialcm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2015, 06:24 PM
  5. Use VLOOKUP to search multiple criteria in any order
    By denialcm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2015, 06:24 PM
  6. Using VLOOKUP to search multiple criteria in ANY ORDER
    By denialcm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2015, 06:20 PM
  7. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM

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