Calculating age in Calc

    From The Document Foundation Wiki
    Other languages:

    Foreword

    The video "Calculating age in Calc - LibreOffice Calc" links to this page here, which provides further information.

    This video shows how, with the help of formulas in Calc, the age can be calculated based on the date of birth.

    Link to the Video

    Link to the Video:

    Calculating age in Calc – LibreOffice

    The Formula

    See picture "The formula".

    The formula

    The functions

    DATEDIF

    DATEDIF(Start date; End date; Interval)

    Returns the number of whole days, months or years between "Start date" and "End date".

    Interval is a sign.

    Value for Interval are the expressions "d", "m", "y", "ym", "md", or "yd".

    IF

    IF(Test; Then value; Otherwise value)

    Results in a Truth check, which is to be carried out.

    TODAY

    TODAY()

    Returns the current computer system date.

    The Table

    See picture "View of the table from 07.06.2020".

    View of the table from 07.06.2020.

    Further Informations

    Age calculation - Wikipedia +1

    In Wikipedia the definition for the calculation of age is described:

    In German_DE :"However, the day of birth shall be included in the calculation of age"Wikipedia logo v3.svg

    For this case, the formula can be supplemented with +1.

    Work files

    The work file: 20200606_Calculating age.ods

    Documentation / Manuals

    Here you will find the Documentation / Manuals:

    Documentation / Manuals

    Any questions?

    For questions on this topic go to:

    Ask.LibreOffice

    Get Involved

    Join us today and help us to make it even better!

    Get Involved

    LibreOffice is Free Software and is made available free of charge.

    Your donation, which is purely optional, supports our worldwide community.

    If you like the software, please consider a Donation.