+ Reply to Thread
Results 1 to 3 of 3

Joining Round Function with If Statement

  1. #1
    Registered User
    Join Date
    03-23-2012
    Location
    Australia
    MS-Off Ver
    Professional Plus 2010
    Posts
    51

    Joining Round Function with If Statement

    Hi,

    Is it possible to join the following formulas:

    = (ROUND((E6 * 1440) / 15, 0) * 15) / 1440

    = IF(e6>MIN(F6,H6),e6-MIN(F6,H6),0)

    I want to round to the nearest 15 minutes then do an "if" statement.

    Bill

  2. #2
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: Joining Round Function with If Statement

    Hi,

    Kindly attached file.

    I don't get your 1st formula. 1440/15 times 15/1440 will simply cancel your operation and leaving the value of e6.

    =IF(ROUND(E6,0)>MIN(F6,H6),ROUND(E6,0)-MIN(F6,H6),0)
    Last edited by reimar_rem; 12-11-2013 at 08:15 AM.
    Click * below if this answer helped

  3. #3
    Registered User
    Join Date
    03-23-2012
    Location
    Australia
    MS-Off Ver
    Professional Plus 2010
    Posts
    51

    Re: Joining Round Function with If Statement

    Hi reimar_rem,

    The Round formula I posted above actually works for rounding to the nearest 15 minutes. Here's an example of what I'm trying to do:

    E6,F6,H6
    11:00,10:43,11:01

    The answer should be 15, i.e. 11:00 minus 10:45 (10:43 rounded up to 10:45).

    I've tried the following but it doesn't work:

    = IF(E6>MIN((ROUND((F6 * 1440) / 15, 0) * 15) / 1440,(ROUND((H6 * 1440) / 15, 0) * 15) / 1440)),E6-MIN(F6,H6),0)

    Any suggestions?

    Bill

+ 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. [SOLVED] If Statement with a Divisible-By function and Round Function
    By thanhie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-06-2013, 01:00 AM
  2. [SOLVED] Conditional Round up or Round up Function
    By cdmterence in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-18-2013, 06:03 PM
  3. [SOLVED] Using round function in if statement
    By bigband1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2012, 12:31 PM
  4. VB Function Round vs Excel function Round not behaving the same Od
    By Bud in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-18-2006, 12:45 AM
  5. Round function in If statement
    By penri0_0 in forum Excel General
    Replies: 3
    Last Post: 05-25-2006, 07:55 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