+ Reply to Thread
Results 1 to 5 of 5

If and statements with 3 arguments

  1. #1
    Forum Contributor
    Join Date
    06-27-2014
    Location
    Margate, FL
    MS-Off Ver
    MS Office 2016
    Posts
    220

    Question If and statements with 3 arguments

    I'm working on a formula to calculate a timesheet. This is a special timesheet. Some people get paid cash as contractors and others go into payroll through a payroll company. Also any OT time is paid in cash as well. I have half of this formula figured out.

    This formula is in column J:
    =IF(AND(A9="ON",K9>40),-40,K9)

    I'm working on row 9 for this example...It basically states - if this person is ON the payroll, and the TOTAL HOURS are over 40 hours, (like in this case 41 hours), then enter only 40 hours but as negative number... which in turn will calculate 1(one) OVERTIME hour for the "Live" check to be written for the remaining hour; if not then enter TOTAL HOURS = column K.

    What I need to do is add a second statement saying: if the person is still ON the payroll but is under 40 TOTAL HOURS, then enter the TOTAL HOURS but as a negative number (working on row 6 for this example)

    I also need to add a third statement saying: if the person is OFF the payroll, then leave blank. Is this even possible? I'm attempting to attach the file but I cant for some reason.

  2. #2
    Registered User
    Join Date
    03-18-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: If and statements with 3 arguments

    Can you try this in J6 =IF(A6="OFF","",IF(K6>=40,-40,IF(K6<40,-1*K6,"")))

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: If and statements with 3 arguments

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: If and statements with 3 arguments

    Maybe this will work for you...no time to fully check.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Forum Contributor
    Join Date
    06-27-2014
    Location
    Margate, FL
    MS-Off Ver
    MS Office 2016
    Posts
    220

    Re: If and statements with 3 arguments

    Wow, you guys are all amazing. All formulas worked perfectly. Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Multiple IF/IFERROR statements, resulting in "too many arguments" error
    By agraham in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2016, 09:27 AM
  2. [SOLVED] IF AND statements with other arguments
    By trosasco23 in forum Excel General
    Replies: 4
    Last Post: 10-16-2014, 03:40 PM
  3. Reading If statements and formulating values from if statements
    By crnam in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-16-2013, 05:20 AM
  4. Replies: 3
    Last Post: 09-07-2009, 04:48 PM
  5. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  6. [SOLVED] operator statements, shorting when reusing one of the statements?
    By KR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2005, 02:05 PM
  7. IF Statements w/ more than 7 arguments needed
    By Jamers8 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-07-2005, 11:03 AM

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