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


Wolfgang Jäth schrieb:

[1] "A", "B" und "C" formatiert als "HH:MM".

In solchen Fällen nimmt man besser "[HH]:MM". Durch die eckigen Klammern
wird der Wert nicht als Zeit*punkt* sondern als Zeit*periode*
interpretiert und dargestellt (und genau das /ist/ die Differenz zweier
Zeitpunkte ja). Dadurch wird die Darstellung der Stunde nicht auf den
Bereich 00..23 eingegrenzt, sondern es können auch Werte kleiner 0 oder
größer 23 dargestellt werden.

Eine gesonderte Abfrage oder Berücksichtigung von leeren
Zellen/Nullwerten wie durch ...

[2] Formel für "C": =(B1>A1)*(B1-A1)

... ist dann gar nicht mehr notwendig.

Ich habe das von Dir vorgeschlagene Format mit meinem Beispiel
ausprobiert.

A | B | C | D

13:00 | | =B1-A1 (Formatcode [HH]:MM)  | =C1x24

Solange B leer bleibt lautet das Ergebnis

C | D 
-13 | -13

Mein Anliegen war ja, das C und D leer bleiben, solange B leer ist.

Gruß, Andreas


-- 
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.