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
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
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks