Share via

=Datedif & =Isblank

Anonymous
2021-08-02T22:34:40+00:00

Hello.

I am trying to use two functions in one cell. I need to be able to get the age in years from a Date of Birth as well as leave the cell blank if there is nothing in the previous cell.

So my DOB is on B and the age is on C

I basically need =DATEDIF(B2,TODAY()”Y”) & =IF(ISBLANK(B2),””,B2) to be the same.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

9 answers

Sort by: Most helpful
  1. Anonymous
    2021-08-03T18:04:21+00:00

    Is it possible to save this rule as a conditional format for an entire row/column?

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2021-08-02T22:46:20+00:00

    Hola Ramon

    Try the formula

    =IF(ISBLANK(B2),"",DATEDIF(B2,TODAY(),"Y"))

    I hope this helps you and gives a solution to your problem

    Do let me know if you need more help

    Regards

    Jeovany

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2021-08-03T19:26:05+00:00

    Re, "Is it possible to save this rule as a conditional format for an entire row/column?"

    Re, "Basically, is it possible for that formula to apply even if the formula is accidentally erased?"

    I'm afraid not to both questions

    Please, clarify your questions, provide more details of your scenario, data entry process, and goals.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2021-08-03T18:13:13+00:00

    Basically, is it possible for that formula to apply even if the formula is accidentally erased?

    Was this answer helpful?

    0 comments No comments
  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more