+ Reply to Thread
Results 1 to 2 of 2

User entered 2 criteria search.

  1. #1
    Registered User
    Join Date
    06-14-2011
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    1

    User entered 2 criteria search.

    I am having trouble figuring out how to create a search function in excel that will allow for a user to enter two criteria and then have the vb search accordingly.

    Basically I have a massive 2 sheet data base filled with Employee numbers and Courses they enrolled in and the status of the course. I want the user to be able to input the employee number and then choose the course from a combo box. The VBA should then take the two values and return on a blank page the cases where the two match and the Outcome.

    Enumber is column A
    Course is column C
    Outcome is column E

    User enters A and C and A, C, and E is output on the blank worksheet. There may be multiple cases where there are more than one result in the case where they failed the course the first time and passed it the second.

    Anyhelp would be appreciated.

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: User entered 2 criteria search.

    In F1 : first criterion
    In G1: second criterion
    first sheet name: "Blad1" (change into 'sheet1', 'feuille1', 'Seite1'...)
    second sheet name: "Blad2" (change into 'sheet1', 'feuille1', 'Seite1'...)

    this example is restricted to A1:A100; you can expand it to A1:A65000
    Please Login or Register  to view this content.



+ 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