+ Reply to Thread
Results 1 to 3 of 3

Search matching 3 columns and Evaluate Problem

  1. #1
    Registered User
    Join Date
    12-08-2010
    Location
    Philippines
    MS-Off Ver
    Office 365
    Posts
    76

    Search matching 3 columns and Evaluate Problem

    I post it on ozgrid.com but got no response after 2 days. I hope someone could help me here

    Search matching 3 columns

    I have 2 sheets

    1 is the raw data and the other is the output

    the raw consists of 5 columns

    1 2 3 4 5
    name type of time log date time shiftdate

    the output should be


    1 2 3 4 5
    name time in time out time late shiftdate



    now, im succesful in extracting the time in data but not the time out data. I've constructed a code where in it will make sure that the "Time OUT" "Shift Date" and Name should match then it would return the time corresponding to the "Time OUT". I've used if else statement.

    The problem is, it will only look for the name and time out but it will disregard the date. It will search for the first row that will match the name and "Time OUT" not the date

    How to solve this? thanks!


    ProTimeOut Executes the command

    If you have a better suggestion, feel free to tell me.
    Thanks in advance!
    VB:

    Please Login or Register  to view this content.

    Across the board I have come up with this. Match formula works in excel not in vba. pls help

    VB:

    Please Login or Register  to view this content.
    If you like these VB formatting tags please consider sponsoring the author in support of injured Royal Marines
    I also want to implement this for errors:
    VB:

    Please Login or Register  to view this content.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,165

    Re: Search matching 3 columns and Evaluate Problem

    Hi etuckram,

    To understand your problem we need a sample of the workbook. You may have text dates or times that aren't converting. We need to have your code in the workbook so we can step throught the code and see what isn't working. You can attach a sample workbook by clicking on "Go Advanced" below the message area and then on the Paper Clip Icon above the advanced message area.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    12-08-2010
    Location
    Philippines
    MS-Off Ver
    Office 365
    Posts
    76

    Re: Search matching 3 columns and Evaluate Problem

    This will work with variables in evaluate or other excel formula in vba.
    Please Login or Register  to view this content.

    This solved the problem:

    Please Login or Register  to view this content.
    thank marvinp for replying

+ 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