+ Reply to Thread
Results 1 to 2 of 2

Troubles getting corresponding column row in IF function

  1. #1
    Registered User
    Join Date
    07-07-2013
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Troubles getting corresponding column row in IF function

    I am trying to calculate the overtime payed. I have a column with number of hours worked, and then another with hourly salary. Im not trying to create another column listing overtime. Its going to just be one single cell with the total. Im trying to take the cells with hours over 40, subtract them by 40, leaving just the overtime hours, then multiplying them by 1.5 for time and a half, and then by the corresponding hourly wage. So it would look like this if I wrote it out.

    =SUM(IF(A1>40, (A1-40)*1.5*B1, 0)+IF(A2>40, (A2-40)*1.5*B2, 0) ... and so on.

    Any help would be great. Thanks.
    Last edited by Dave003; 07-07-2013 at 01:14 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Formula problem

    Administrative Note:
    •We would love to help you with your query, but first, before we can proceed…
    •Please see Forum Rule #1 about proper thread titles and adjust accordingly...

    To change a Title on your post, click EDIT on you're 1st post, then Go Advanced and change your title
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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