+ Reply to Thread
Results 1 to 6 of 6

Vlookup

Hybrid View

  1. #1
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953
    please see the example file attached
    Attached Files Attached Files
    Ben Van Johnson

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Hi Ben,

    Good example. I would recommend one thing, though:

    Instead of typing each employees name into the Data Validation list, use a dynamic named range. If you type the list, 1) it could be very long; 2) to change it would require you to edit the validation list and then apply that change to all cells with similar validation; and 3) could be prone to typing errors causing errors when trying to lookup the names. By using a dynamic range, you never have to worry about that.

    To create a dynamic list of employee names, once they're entered onto Sheet2 column A, click Insert -> Name -> Define, type in a name (like: EmpList) and then use the following formula as the reference:

    =OFFSET(Sheet2!$A$1,0,0,COUNTA(Sheet2!$A:$A),1)

    Then, in the first "name" cell in column F (say F2), select Data -> Validation, Allow: List, Source: =EmpList

    From that point forward, whenever you add or remove names from the list on Sheet2 it will be reflected in the drop-down lists.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953
    Hi pjoaquin,
    I like your suggestion, and I can use it immediately in one of my own WB's

  4. #4
    Registered User
    Join Date
    09-04-2007
    Posts
    3

    Smile Thanks

    Thanks guys that worked great. Only problem i had was that my current spreadsheet is a little large for all the editing (11,500 entries) but i will definatly use it when i make my 2008 sheet. Looking at that number just made me think maybe i should do 6 month sheets

+ 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