How to ROUND in Power Query To Match Excel - 2396

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on Mar 11, 2021.
The Round menu option in Power Query does not round the same way that Excel rounds. This is a shorter video covering the same information that Excel MVP Celia Alves covered in episode 2391. In order to have Power Query ROUND and Excel ROUND return the same results, you have to edit the formula in Power Query to add RoundingModeAwayFromZero. This video shows you how.
maxresdefault.jpg


Transcript of the video:
Learn Excel from MrExcel podcast episode 2396 How to ROUND in Power Query.
Hey, welcome back to the MrExcel netcast. I'm Bill Jelen.
Today is super fast version of episode 2392 and with my thanks to MVP Celia Alves.
How do we round in Excel versus Power Query?
So the round function Excel rounding to 0 decimal places always rounds away from zero when there's a tie.
So the 4.5 goes to five. 3.5 goes to four.
Negative 3.5 rounds away from zero to negative 4. That's what we expect.
If we take this through Power Query. Data, From table or Range.
And we just simply come here to Add Column and say that we want to do Rounding, Round….
To zero decimal places. Click OK.
We get the wrong results.
Power query rounds not away from zero, but towards the even number.
If you want to make this work, we're going to do Rounding, Round, to 0 decimal places. Click OK and then here in the formula bar.
If you don't see the formula bar, go to View, Formula Bar.
And then in the formula bar.
So after number dot round we're going to click after the zero decimal places. Put another comma and start typing R-O-U.
Go rounding mode away from zero. This isn't built into the dialog box yet.
It should be there's room. They could put Advanced there.
They could.
They could put a note that tell the Excel people that they're not going to get the exact same results that they expect from Excel.
Alright, so there's our Power Query Round Oh no. And our power query round fixed.
Alright, so the important thing here that the correct way to do that is with number dot round.
After the 0 decimal places adding the rounding mode dot away from zero.
Out of all those videos in this series, you would have thought that Round was the easy one.
That it would have just been a no brainer, but is not.
Hey check out my new book MrExcel 2021.
Click the I in the top right-hand corner for more information about that.
If you like these videos, please Like, Subscribe and Ring the Bell.
Feel free to post any questions down in YouTube comments below.
Hey, I want to thank for stopping by. We will see you next time for another cat from MrExcel.
 

Forum statistics

Threads
1,223,664
Messages
6,173,654
Members
452,525
Latest member
DPOLKADOT

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