Excel ODBC SQL query - data stripped of decimal value on one PC

John Kourtesis 96 Reputation points
2020-12-23T15:14:32.5+00:00

I have a report that I built for a client.

On my PC when I run the report it pull the data correctly. Example value of 1234.56
When I hop on screen sharing with the client, send them the same workbook and have them run it that same value is stripped of everything after the decimal place. So appears like 1234

The column was initially formatted as General. (not a problem on my PC)
While on their PC I changed it to Number with 2 decimal places and ran the query again.
Value now shows as 1234.00

It seems to me as though there is something on their PC that is stripping off everything after the decimal.
Or rounding to a whole number during the data pull.

But I can't figure out what is doing it.
Their ODBC connection settings appear to be identical to mine.
I have reviewed my excel setting to see if there is something in Excel that can round or strip everything after a decimal place for data coming from an SQL data connection and not finding anything.

I am at a loss for what to look for here.

What could be causing Excel to strip data brought in from an SQL query/connection of it's value after the decimal?

The problem this causes is that when I Pivot the data the sums aren't matching their GL.

Is there any chance this has something to do with version of Excel?

Clients

  • Home and business 2013 - 15.0.5293.1000 - 32bit

Mine is

  • Office 365 - 16.0.11929.20728 - 64bit
Microsoft 365 and Office | Excel | For business | Windows
{count} votes

Accepted answer
  1. John Kourtesis 96 Reputation points
    2021-01-05T15:10:03.277+00:00

    Okay so my client uninstalled IBM I access for windows and then reinstalled it and ODBC.
    Went from a 2010 version to a 2015 version.

    This fixed the issue.

    Would have never thought to try that.

    Thanks anyhow for the chat.


2 additional answers

Sort by: Most helpful
  1. Emily Hua-MSFT 27,796 Reputation points
    2020-12-24T07:53:07.483+00:00

    @John Kourtesis

    I aggree with ErlandSommarskog, please go to Control Panel > Clock and region > Region > Formats tab > Additional Settings > Numbers tab, especially the set of "No. of digits after demical".

    Then go to Excel > Options > Advanced > Make sure the "Automatically insert a demical point" is not ticked.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Tom Phillips 17,771 Reputation points
    2021-01-05T16:59:57.827+00:00

    What exactly does the value in the top bar show? The top bar in Excel will show the actual value, not the formatted value.

    Your problem sounds like a display problem in Excel, not a problem with the data.

    53681-excelformatting.png

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.