Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Vlookup problem

  1. #1
    New Member
    Join Date
    Feb 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I have 2 Excel spreadsheets, one has a list of procedures with effective dates, the other has a list of personnell trained in the procedures with the date trained

    Sheet 1 : 3 columns, code, description, effective date

    Sheet 2: Employee no, name, code, description, date trained.

    I am trying to construct a third sheet, which will combine data from sheets 1 & 2, to give me table highlighting when someone has not been trained on a procedure after the effective date. I am using Vlookup but this will only work for the first person in the database.

    Any Ideas

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Brampton
    Posts
    328
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    If you start with two sheets in the workbook you could get a third sheet added each time you close the workbook by writing a Workbook_Close event procedure in which you should have code to complete following:
    - set up a new column in Sheet2 named Effective Date which is going to use Vlookup for the relevant values from Sheet1
    - advanced filter in Sheet2 using as criterion: =E5>F5 (you have three empty rows above the Sheet2 column labels), placed in cell A2; use Copy to another location option, in the same sheet
    - copy the filtered list in Sheet3 if you want to have the result placed on a different sheet

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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