Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

How would I finish this formula to conver HH:MM:SS to just Minutes

rmartori
8 - Asteroid

So I found this formula but it is only for HH:MM

ToNumber(Right([HH:MM],2))+ 60 * ToNumber(Left([HH:MM],2))

When seconds come into play it falls apart.

 

I am using the formula tool. 

2 REPLIES 2
Emil_Kos
17 - Castor
17 - Castor

Hi @rmartori,

 

I have prepared the example with substring formula.

 

Please take a look and mark as solved if this was helpful.

 

 

Qiu
21 - Polaris
21 - Polaris

@rmartori 

If you like this, appreciate you would make it as accept.

 


Count the Seconds, Column needs to be Double
Round(ToNumber(Right([HH:MM:SS],2))/60,0.01)+ ToNumber(Substring([HH:MM:SS],4,2))+60 * ToNumber(Left([HH:MM:SS],2))
Dump the seconds
ToNumber(Substring([HH:MM:SS],4,2))+60 * ToNumber(Left([HH:MM:SS],2)]

Labels
Top Solution Authors