Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hallo Leute,
Ich benötige eine Formel für ein KPI zu berechnen, bei der ich Differenz bilde zwischen der aktuellen Uhrzeit und den nächsten 14 Uhr.
Ist sowas möglich?
Ich habe die Funktion now() gefunden, was denkt Ihr?
Viele n Dank und viele Grüße,
Jens
Google Translate:
@JBO7369 wrote:
Hi Guys, I need a formula to calculate a KPI, where I form the difference between the current time and the next 2 p.m. Is something like this possible? I found the now() function, what do you think? Thank you and best regards, Jens
If I understand your question correctly you want to calculate the time between tomorrow 2pm and right now? If so then this should do the trick:
=Interval(
(Today()+1+maketime(14))
-Now()
)
See also:
Diese Lösung zeigt den Undershied zwischen jetzt und 2 Uhr Morgens, egal wie viel Uhr es heute ist. Wenn wir die "1" durch ein if-statement ersetzen funktioniert es doch!
=Interval(
(Today()+ if(Date(Today(), 'hh') >= 14, 0, 1) +maketime(14))
-Now()
)
Num(Today()) is always an integer, therefore (if I'm not wrong) my solution should work no matter what the time is today.