+ Reply to Thread
Results 1 to 3 of 3

How to Find username from table with first name & last name

  1. #1
    Registered User
    Join Date
    01-20-2012
    Location
    **** you calis
    MS-Off Ver
    Excel 2003
    Posts
    2

    How to Find username from table with first name & last name

    Hi All,

    I searched in the forum already but im not sure what looking for. I try to make a VBA button in excel. i have data in 2 rows in a sheet where I can find
    the first name and last name of everyone. In another sheet I have first name, last and username. I need to make a macro to match the username from the second sheet that match the first name last name of the first sheet and copy the username in a new column on the second sheet.

    I try something like this but is not making it, Im maybe close to the solution or maybe not.
    Evaluate("INDEX(adusager,match(1,(prenomrh=(RH!""L2"")&(nomrh=(RH!""M2"")*(adprenom=(feuil1!""B2"")&(adnom=(feuil1!""A2""),0))")

    first sheet exemple

    sn givenName sAMAccountName
    Lizotte Real izrea01
    Gervais Gylbert gergyl01
    Djotsa Edith djoedi01
    Stoetzel Nadia stonad01
    Carrier Denise carden1
    Durocher Marie-Eve durmar04
    Bediako Anna bedann01

    second sheet exemple
    PRENOM NOM
    MARC SOUGAVINSKI
    NICOLE PAQUETTE
    STELLA ROUSSEAU
    SUZANNE CARON
    MELANIE LAPOINTE
    JOSEPH PAIEMENT



    Thx all

  2. #2
    Registered User
    Join Date
    01-20-2012
    Location
    **** you calis
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How to Find username from table with first name & last name

    Nobody have a hint for me ?? do you need more detail ?

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How to Find username from table with first name & last name

    A couple of suggestions

    1/. Edit your Location the forum filter obviously doesn't like it.
    2/, What does the first table, the second table, and the "formula" you have posted have in common?

    You would do best to post a sample workbook showing your Sheet Layout and Before and After examples.

    It should clearly illustrate your problem and not contain any sensitive data.


    Cheers

    From Forum FAQs

    How do I attach a file to a post?

    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'. To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'. Clicking this button will open a new window for uploading attachments. You can upload an attachment either from your computer or from another URL by using the appropriate box on this page. Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file. To upload a file from another URL, enter the full URL for the file in the second box on this page. Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window. You can then close the window to return to the new post screen.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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