Closed Thread
Results 1 to 2 of 2

Dateif formula

  1. #1
    Registered User
    Join Date
    08-12-2008
    Location
    Georgia
    Posts
    10

    Dateif formula

    I have a payroll spreadsheet that has Office hours and a transportation pay scale on the same page it works well.
    the transportation dept. has a safety program.
    the program starts after 1 year service.
    Cell J1 has the hire date of the employee.
    the safety bonus starts @ .005 and goes tp.03 by the quarter.
    if the driver has an accident the bonus starts over @.005
    there is a question to be answered @ cell N2, Has this driver had an accident since last Quarter Yes = Y No = N.
    when y is in the cell there are no problems but when N is in the cell has this problem.


    Here is the formula That works well till I get within 1 year and 3 months of current date.
    IF(N2="N",I25*0.005,MIN((INT(DATEDIF(DATE(YEAR(J1)+1,MONTH(J1),DAY(J1)),TODAY(),"m")/3)+1)*0.005,0.03)*I25)
    then it returns #NUM! (I can't get that to be blank untill the bonus kicks in.)


    I need the quarters to work from the first of the year and not the hire date.
    but the hire still dictates when the bonus kicks in.

    this has got me stumped.
    Is there any IDEAS?
    Last edited by Get_Involved; 08-12-2008 at 04:43 PM.

  2. #2
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111

    Double Post

    Re post in the 'Worksheet Functions' sub forum

    Here the response by daddylonglegs

    http://www.excelforum.com/showthread...89#post1955189
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

Closed 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