Data from excel query is not in number format

3k Views Asked by At

I am querying using Excel 2013-DATA tab-From Other Sources-From Microsoft Query. Everything works I am getting what I need but the format of numbers is not in right format and I am doing everything to change it but I can't. I know escel quite well, so I tried everything that everybody would try first and the post. Nothing worked, I want my list to be live and I want to be able to work with numbers. Now I can't do even basic function like sum, min or max. But there is something weird happens when you edit. When you click on cell and I do not change anything and becomes number format. For example; B1, A3, B7, A11 are some examples. Please help me to make numbers coming from excel query to be in a number format. Let me know if my question is not clear. Please note that it is in table format. Thanks

Please see this picture

1

There are 1 best solutions below

0
On

Rovshan,

In my experience the formatting when exporting from SQL to excel is not always convenient, even if you format the query results prior to "Close & Load" of the query it still converts it to Text or General in some cases.

What I recommend you try is run your query as normal, format your results in the manner in which you want them to appear normally, then under the "Data" tab select "Properties

Here you´re going to check the box that states "Preserve column sort/filter/layout"

enter image description here

This should preserve your format for future query updates. Note that this is specific to this query within this workbook, it will not be the default for other queries.

Regards,