Skip to main content

What's up with HH:MM format?

  • January 7, 2022
  • 5 replies
  • 2179 views

jscottsmith

I want to convert to HH:MM, but I always get HH:MM:SS

Here’s my formula:
TEXT({Duration (Decimal hours)}*3600,“HH:MM”)

This is the result:

What am I doing wrong?

This topic has been closed for replies.

5 replies

JCorrell
Forum|alt.badge.img
  • Community Expert
  • January 8, 2022

@jscottsmith

It’s not you.

Here’s two answers:

LEFT(RIGHT(" "&TEXT({Duration (Decimal hours)}*3600,"HH:MM"),8),5)

REGEXEXTRACT(TEXT({Duration (Decimal hours)}*3600,"HH:MM"),"(.*):00")

Jim - Subscribe to The Monday Man
Watch Our Latest Video: Quick Tip - The Trick to Editing Custom Automations


jscottsmith
  • Author
  • Participating Frequently
  • January 8, 2022

Thanks Jim.

Sense like they would differentiate between HHMM and HHMMSS in a function like this.

Scott


  • New Participant
  • May 12, 2022

Can I do the opposite? Convert from HH:MM to a decimal hours?


JCorrell
Forum|alt.badge.img
  • Community Expert
  • May 12, 2022

@omerg

If you are referring to an “Hour” column, this will do it:
TIMEVALUE("1/1/1 " & {Hour}) * 24


Jim - The Monday Man (YouTube Channel)
Watch Our Latest Video: A Status Column Tip - When is “Done” really DONE?
Contact me directly here: Contact – The Monday Man


  • May 19, 2022

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.