Date: prev next · Thread: first prev next last
2022 Archives by date, by thread · List index


Micha Kühn schrieb:

Hallo,

wie kann ich am bequemsten in Calc das Alter einer Person berechnen?

In D1 steht das Bezugsdatum, ich möchte wissen wie als die Leute an
diesem Datum sind.
In B2 steht das Geburtsdatum.

Erste Idee: =(D1-B2)/365

Aber das klappt vermutlich nicht bei Schaltjahren rund um den 28.2. usw.
Ich hätte gerne etwas, das zuverlässig und immer funktioniert. (Und
letztlich hätte ich es gerne ganzzahlig).

Danke,
Micha

Hallo,

ich bin jetzt doch noch im Netz fündig geworden:
https://toptorials.com/alter-berechnen-libre-office-calc/

Dort wird die Funktion datumdif(Startdatum;Enddatum;"Y") benutzt, um das
Alter in Jahren zu berechnen. Scheint erstmal auch zu stimmen (und
mittlerweile auch besser als in dem Film, wo das Alter erst am Tag nach
dem Geburtstag hochgezählt wird).

Spricht etwas gegen diese Funktion?

Liebe Grüße
Micha
--
Achtung, ich entgendere jetzt nach Phettberg, nicht über ungewohnte y
wundern. Siehe zum Beispiel https://youtu.be/xVmGb7qACfA

-- 
Liste abmelden mit E-Mail an: users+unsubscribe@de.libreoffice.org
Probleme? https://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: https://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: https://listarchives.libreoffice.org/de/users/
Datenschutzerklärung: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.