Power Query rounding

Weazel

Well-known Member
Joined
Dec 24, 2011
Messages
3,155
In excel, when I have to round time to the nearest 30 minutes I can use =FLOOR([@Time],1/48), pretty straight forward.

I haven't been able to sort out the correct power query function though and I'm currently having to take care of it in the table.

Any assistance would be greatly appreciated

Unknown
QRST
1TimeDOWMonthInterval
28:17:00 AMWedFebruary8:00
38:37:00 AMWedFebruary8:30
49:07:00 AMWedFebruary9:00
59:34:00 AMWedFebruary9:30
69:56:00 AMWedFebruary9:30
710:27:00 AMWedFebruary10:00

<tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
T2=FLOOR([@Time],1/48)

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
You can add a custom column with formula:

Code:
= Time.From(Number.IntegerDivide(48*Number.From([Time]),1)/48)
 
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,284
Members
449,218
Latest member
Excel Master

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