+ Reply to Thread
Results 1 to 2 of 2

Blank cell if no calculation required

  1. #1
    Registered User
    Join Date
    12-16-2003
    Location
    New Zealand
    Posts
    3

    Blank cell if no calculation required

    Please help I have the below calculation

    =YEAR(C33)-YEAR(G3)

    If Cell C33 is empty instead of showing 0 in the sum cell I would like it to be blank
    Unsnz

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

    Re: Blank cell if no calculation required

    hi Unsnz. wow a 2nd post after joining for 9 years? what happens if C33 is Dec 2012 & G3 is Jan 2013? do you consider that to be 1 year? you should use the DATEDIF formula instead for more accuracy:
    =IF(C3="","",DATEDIF(C3,G3,"y"))

    "y" stands for years between the 2 dates.

    if G3 might be a blank too, then:
    =IF(OR(C3="",G3=""),"",DATEDIF(C3,G3,"y"))

    also consider updating your Excel version in your profile here by going to the Settings -> Edit Profile -> My Microsoft Office Version
    that helps us give you the solutions with the latest formulas.

    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

+ 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