Converting time

Capps

New Member
Joined
Aug 14, 2020
Messages
7
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
Hi,

I've been trying to figure this out but haven't found a solution yet.

What I want as an example is
0.00:04:53

What I'm getting when the table loads from power
0.003391204

The code section looks like

#"Changed Type1" = Table.TransformColumnTypes(#"Removed Columns2",{{"* FIRST RELEASE DATE [dd/mm/yyyy]:", type date}, {"* AVAILABLE DATE [dd/mm/yyyy]:#(lf) must be same or later than release date", type date}, {"DURATION VIDEO", type duration}}),
 

Attachments

  • 1597801198526.png
    1597801198526.png
    3.9 KB · Views: 13

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
maybe
Rich (BB code):
let
    Source = Excel.CurrentWorkbook(){[Name="Table4"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type duration}}),
    #"Extracted Text Before Delimiter" = Table.TransformColumns(#"Changed Type", {{"Column1", each Text.BeforeDelimiter(Text.From(_, "en-GB"), ".", {0, RelativePosition.FromEnd}), type text}}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Extracted Text Before Delimiter",{{"Column1", type duration}})
in
    #"Changed Type1"
Column1Column1
0.0033912040.00:04:53
 
Upvote 0
Hi, thank you for your response. This could be my lack of understanding.

I believe what you've suggested works but it's essentially what is happening.

I can already see the final "0.00:04:53" but when I load the table to excel it automatically converts to "0.003391204". How do I keep it as "0.00:04:53"?
 
Upvote 0
you need define type of data in last step as duration
as you can see I set data type as duration twice, so try the same
dur.png

or/and in worksheet use Custom format: d.hh:mm:ss
and set Properties
format.png
 
Upvote 0

Forum statistics

Threads
1,223,774
Messages
6,174,456
Members
452,566
Latest member
Bonnie_bb

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