+ Reply to Thread
Results 1 to 5 of 5

Search+Return value of the cell to the left

  1. #1
    Registered User
    Join Date
    04-17-2011
    Location
    Orlando
    MS-Off Ver
    Excel 2007
    Posts
    27

    Exclamation Search+Return value of the cell to the left

    Hello,


    I am sure this is an easy fix, but I have been searching everywhere and have yet to find anything.


    I have one column with employee names (Column L) and and another column with employee ID numbers (Column M)

    I need a macro that when the Employee ID number is searched it returns the Employees Name.

    I really dont want a function. I am looking for a macro


    Thanks

    -Kyle





    ------L----------------------M

    Employee 1 ----------- 1
    Employee 2------------ 2
    Employee 3 ------------3
    Employee 4 ------------4
    Employee 5 ----------- 5
    Employee 6 ----------- 6
    Employee 7-------------7
    Employee 8 ----------- 8



    End Sub
    Last edited by Crebsington; 08-21-2011 at 02:56 AM. Reason: Format

  2. #2
    Forum Contributor
    Join Date
    03-11-2010
    Location
    India
    MS-Off Ver
    2010
    Posts
    268

    Re: Search+Return value of the cell to the left

    How will the Employee ID number be searched?

  3. #3
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Search+Return value of the cell to the left

    Hi Crebsingtion,

    Try the following code and let me know if it meets your requirements
    Please Login or Register  to view this content.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  4. #4
    Registered User
    Join Date
    04-17-2011
    Location
    Orlando
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Search+Return value of the cell to the left

    Yes This is Perfect!
    Last edited by Crebsington; 08-21-2011 at 02:55 AM. Reason: Solved

  5. #5
    Registered User
    Join Date
    04-17-2011
    Location
    Orlando
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Search+Return value of the cell to the left

    Thank you!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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