Increase number of decimal places on imported data

ToffeeMark

New Member
Joined
May 1, 2014
Messages
21
Hi,

I'm trying to import data from an excel workbook (lots of files) but the field is rounded in excel and rounded when I load it into powerquery. e.g. 3.88 instead of 3.875.

I can import an individual sheet ok as 3.875 but when I try to import all the files in the folder it rounds as per the excel workbook.

There are no change type steps in the transform file, it's difficult to pin down, what I'm asking is, can I tell powerquery to import 3 decimal places, or all the digits?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
a bit :confused:
decimals.jpg

and after
after.png
 
Upvote 0
would be nice to see these dummy files with result file (zip and post a link to this via onedrive, googledrive or any similar service)

maybe check system settings
sysset.png
 
Last edited:
Upvote 0
The dummy folder/dummy files worked fine. They were on my desktop though, the problem files were on the shared drive. I'm going to put the folder on my desktop and see if it works, I'm wondering if it might me to do with protected view or something. I'll post back when I've figured it out.
 
Upvote 0
No, unfortunately nothing is working - it brings the data in as displayed in Excel (Number format) - the only way I can see to fix it is to change the format in each workbook to general first in order to reveal all the decimal places, then save, then import. Bit of a pain but theres obviously something in the workbook that.....wait a minute. Just checked, I'm getting these files from an external source and they're in "Microsoft Excel 97-2003 Worksheet" Format, by saving them as "Microsoft Excel Worksheet" - (xlsx) it suddenly all works.

Must be a problem with older format excel workbook imports I've not come across before. Not sure if theres a way of handling that with power query so I'll just go in and save each file in the new format.
 
Upvote 0
Solution
Power Query takes what it sees
if in the sheet is 5.875, it is also in PQ, if 5.88 - it also 5.88 in PQ
 
Upvote 0

Forum statistics

Threads
1,223,754
Messages
6,174,313
Members
452,554
Latest member
Louis1225

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