+ Reply to Thread
Results 1 to 4 of 4

Ignore blank cells in time duration formula

  1. #1
    Registered User
    Join Date
    11-29-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    3

    Ignore blank cells in time duration formula

    Hi

    I'm using a formula to calculate time duration basically tells me total day/hours passed from daily time stamps. The formula below pulls the time stamp from one column but if the column has no time (blank) the formula does work. Where do I modify this formula to ignore cells with no time?

    =INT((A200-A3)*24)&":"&TEXT(A200-A3,"hh:mm")

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Ignore blank cells in time duration formula

    hi bigjez, welcome to the forum. not tested with your formula, but try:
    =IF(A200="","",INT((A200-A3)*24)&":"&TEXT(A200-A3,"hh:mm"))
    or
    =IF(A3="","",INT((A200-A3)*24)&":"&TEXT(A200-A3,"hh:mm"))
    or for both cells A3 & A200:
    =IF(COUNTBLANK(A3,A200)>0,"",INT((A200-A3)*24)&":"&TEXT(A200-A3,"hh:mm"))

    not sure which cell decides the blank, so i provided 3 formulas. to better illustrate, upload a sample file. press "Go to Advanced" beside the "Post Quick Reply" button & click on the paperclip icon.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    11-29-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Ignore blank cells in time duration formula

    I've uploaded a sample for better view
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-29-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Ignore blank cells in time duration formula

    I tried all three formulas and neither seem to do the trick. I think I just missing something simple to string them together correctly.

+ 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