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


Hallo Wolfgang,

ich habe mal eben Deinen Vorschlag angewendet:

Spalte "A": Format "HH:MM"
Spalte "B": Format "HH:MM"
Spalte "C": Format "[HH]:MM"

Mit:

"A": 13:00
"B": leer
"C": =B1-A1 ergibt -13:00

Aber Andreas möchte ja, dass in diesem Fall in "C" keine "Minus"-Zeit angezeigt wird.

Habe ich Dich da irgendwo falsch verstanden ?

Gruß
Hans-Werner

------ Originalnachricht ------
Von: "Wolfgang Jäth" <jawo.ml.hamster@arcor.de>
An: users@de.libreoffice.org
Gesendet: 02.08.2018 17:23:56
Betreff: Re: [de-users] Calc: Subtraktion von Uhrzeitangaben

Am 02.08.2018 um 15:41 schrieb OoOHWHOoO:
Hallo Andreas,

es gibt schon eine ganz gute Möglichkeit - in Anlehnung an
https://help.libreoffice.org/Calc/Calculating_Time_Differences/de -
vielleicht hilft Dir das weiter:

"C:" =(B1>A1)*(B1-A1)

(B1>A1) ist ein logischer Ausdruck. Ist er wahr, hat er den Wert 1, ist
er Falsch, hat er den Wert 0

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

[TOFU entfernt]

Wolfgang
--
Durch Donald Trump ist mir endgültig klar geworden: Es ist
nicht der Turm von Pisa, der schief steht, es ist die Welt!


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


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