+ Reply to Thread
Results 1 to 16 of 16

Formula Problem

Hybrid View

  1. #1
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561
    How about e6=24*(IF(C6>D6,D6+1-C6,IF(H6="x",D6-C6,D6-C6-0.02)))

    (there are much better ways of doing this but I've spent about as much time on this as you spent titling your thread).

    CC

  2. #2
    Registered User
    Join Date
    11-25-2008
    Location
    Wales
    Posts
    8
    Quote Originally Posted by Cheeky Charlie View Post
    How about e6=24*(IF(C6>D6,D6+1-C6,IF(H6="x",D6-C6,D6-C6-0.02)))

    (there are much better ways of doing this but I've spent about as much time on this as you spent titling your thread).

    CC
    Hi,

    What are you getting at?

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    Just to reiterate your existing formula can be simplified if you use:

    MOD(end time - start time,1)

    This caters for possibility of end time < start time and v-v...
    (a trick I picked up from daddylonglegs).

    then simply subtract 30 mins from above result wherever H does not contain "x"

    multiply result by 24.

    (CC was getting at the fact that "Formula Problem" was not overly descriptive...)

  4. #4
    Registered User
    Join Date
    11-25-2008
    Location
    Wales
    Posts
    8
    Quote Originally Posted by DonkeyOte View Post
    Just to reiterate your existing formula can be simplified if you use:

    MOD(end time - start time,1)

    This caters for possibility of end time < start time and v-v...
    (a trick I picked up from daddylonglegs).

    then simply subtract 30 mins from above result wherever H does not contain "x"

    multiply result by 24.

    (CC was getting at the fact that "Formula Problem" was not overly descriptive...)
    Thanks for your help.

    The description got his attention though didn't it.

+ 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