I need a formula to calculate minutes in powerpivot. For example, if the time is 00:30 (30 min) I would like to display 30 min but if the time is 1:00 (1 hour) I would like it to display 60 mins. Any help is appreciate
Thanks
Can you try this formula below?
Basically, we search the position of ":", multiply what's on its left by 60 and add it to what's on its right (+0 converts both parts into numbers).
Rich (BB code):
= ( LEFT ( [times], SEARCH (":", [times] ) - 1) + 0 ) * 60+ RIGHT ( [times], LEN ( [times] ) - SEARCH (":", [times] )) + 0
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.