Time Format Conversion

Sklotz163

New Member
Joined
Dec 22, 2015
Messages
8
Hey there!


I am trying to pull the amount of time a case stays as a certain status in Jira, but I am unable to pivot the format in which Jira exports time.


Is there a way to convert the following format into just minutes?


1 h, 48 m, 30 s


I would like the value above to become 108.5 so I can create a pivot table.


I am just manually converting everything into minutes at the moment, so any advice to streamline this process would be much appreciated.


Thanks!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try the following User Defined Function:

Code:
Public Function JustMinutes(sIN As String) As Double
    ary = Split(sIN, ", ")
    JustMinutes = 0
    For Each a In ary
        bry = Split(a, " ")
        If bry(1) = "h" Then JustMinutes = JustMinutes + bry(0) * 60
        If bry(1) = "m" Then JustMinutes = JustMinutes + bry(0)
        If bry(1) = "s" Then JustMinutes = JustMinutes + bry(0) / 60
    Next a
End Function
 
Upvote 0

Forum statistics

Threads
1,214,962
Messages
6,122,482
Members
449,088
Latest member
Melvetica

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top