
Contributor
2022-04-22
02:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mit Datum und Uhrzeit rechnen
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
1,109 Views
3 Replies

Partner - Contributor III
2022-04-22
07:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:

Partner - Contributor
2022-04-22
07:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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()
)
1,057 Views

Partner - Contributor III
2022-04-22
08:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Num(Today()) is always an integer, therefore (if I'm not wrong) my solution should work no matter what the time is today.
1,050 Views
