+ Reply to Thread
Results 1 to 2 of 2

Return Zero in Date Subtraction

  1. #1
    Registered User
    Join Date
    01-30-2011
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    13

    Return Zero in Date Subtraction

    Hi All

    I have a range of dates in a row extending to ten columns but sometimes not all cells in the row have a date (the cells with dates in are dependent on other cells - so if the dependent cell does not have a date it the cell returns 00-Jan-00).

    If for example the first two cells in the row had two dates as attached how do I get the cell to return zero when subtracting one from the other.

    Thanking you in advance.

    Kind Regards
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Return Zero in Date Subtraction

    B6: =IF(B4<>0,A4-B4,0)

    and drag across.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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