Results 1 to 2 of 2

vba code

Threaded View

  1. #1
    Registered User
    Join Date
    01-11-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    9

    vba code

    Pls help me, I need code to calculate the OT based on condition in cell $B$2 and cell A3 and cell B3.

    DS & Weekday(Mon~Fri)
    If outtime between 1700 to 1715 then OT = 0
    If outtime between 1900 to 1915 then OT = 2

    NS & Weekday(Mon~Fri)
    If outtime between 400 to 415 then OT = 0
    If outtime between 700 to 715 then OT = 2

    NS & Weekend(sat~sun)
    If outtime between 1700 to 1715 then OT = 8
    If outtime between 1900 to 1915 then OT = 10
    NS & Weekend(sat~sun)
    If outtime between 400 to 415 then OT = 8
    If outtime between 700 to 715 then OT = 10
    Attached Files Attached Files

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