+ Reply to Thread
Results 1 to 4 of 4

make:IF statement

  1. #1
    Registered User
    Join Date
    01-28-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    make:IF statement

    I need to make an IF statement in cell G3.

    I need to calculate regular pay. There are two different types. There are the Hourly workers, which are noted with the "H" in column D and there is "S" which is for the salary people. We ofcourse dont need to calculate the regular pay for the salary employees. So they would be the last part of the IF statement: "value if false".

    I am stuck on making the IF statement though. How do i have it check Column D to see if the employee is an "H" or an "S". And if they are an H have it multiply column E "regular hours" by column F "pay rate" and then ofcourse "If false"..being that they are a salary employee then have it just put in the contents of column F since that is their fixed pay.

    here is a pic of my sheet.

    \1

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Quick Help with the IF statement

    Try

    =IF(D3="H",E3*F3,F3)

  3. #3
    Registered User
    Join Date
    01-28-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Quick Help with the IF statement

    Quote Originally Posted by Cutter View Post
    Try

    =IF(D3="H",E3*F3,F3)
    ahhh thanks. the formula i originally created was just like that but I didnt think about putting the D3="H" i just idiotically put "H" lol. thanks

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Quick Help with the IF statement

    So close - don't forget to mark your thread as SOLVED

    See FAQ button at top of page

+ 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