+ Reply to Thread
Results 1 to 3 of 3

Time formula

Hybrid View

  1. #1
    Registered User
    Join Date
    07-16-2009
    Location
    Cartersville, Georgia
    MS-Off Ver
    Excel 2007
    Posts
    43

    Time formula

    I am using a formula for time calculations. Using A1,B1, & C1 where the sum is in C1. However when I enter a time in A1 it gives me a time that is different until I enter the time in the second cell then will correct itself.
    The question I have is there a way to have the C1 remain blank until both times are entered into the cells to give the sum of the times?

    Here is the formula that I am using,
    =IF(24*(IF(A1>B1,B1+1-A1,B1-A1)),24*(IF(A1>B1,B1+1-A1,B1-A1)),"")
    Thank you for any help
    Last edited by tvonbehren; 06-14-2010 at 06:04 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,729

    re: Time formula

    Try

    =IF(COUNT(A1,B1)=2,MOD(B1-A1,1)*24,"")
    Audere est facere

  3. #3
    Registered User
    Join Date
    07-16-2009
    Location
    Cartersville, Georgia
    MS-Off Ver
    Excel 2007
    Posts
    43

    re: Time formula

    Thank you this is exactly what I was looking for. Again thank you

+ 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