+ Reply to Thread
Results 1 to 4 of 4

Combine "=IF" and "=HOUR" statement for cell formula

  1. #1
    Registered User
    Join Date
    05-25-2013
    Location
    Yonkers NY
    MS-Off Ver
    Excel 2010
    Posts
    28

    Combine "=IF" and "=HOUR" statement for cell formula

    I need a little help combining these two functions please. "=IF(B2="Off", and combine with "=HOUR(A3)"
    This is for an Overtime program. The formula will be entered in cell C3. The time in A3 may look like 9:45. I just want "9" to appear in cell C3 if B2 has "Off" in it. Thank you in advance.

  2. #2
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Combine "=IF" and "=HOUR" statement for cell formula

    may be this
    =if(and(b2="Off",B2=Hour(A3)…

  3. #3
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Combine "=IF" and "=HOUR" statement for cell formula

    hi
    sorry I didnt read complete

    the formula is =IF(B3="off",HOUR(A3),"")

  4. #4
    Registered User
    Join Date
    05-25-2013
    Location
    Yonkers NY
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Combine "=IF" and "=HOUR" statement for cell formula

    Thank you Sadath31! The second formula works perfect.

+ 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