Go Back   Scooter Forums > Beyond Compare 3 Discussion > General Discussion
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 17-Jul-2012, 03:14 AM
ludo1208 ludo1208 is offline
Visitor
 
Join Date: Jul 2012
Posts: 5
Default Problems with decimal comma in excel compare

Hello,

I am comparing 2 Excel-Files and having problems with the decimal comma.
It seems that in BC3 the decimal comma is always 'ignored'.

Example (see attachments):
Cell D2 contains the value 1,45. The compare always shows this value as 145.
It does not matter which option I set in File Formats Menu ...

Is there a possibility to get the decimal numbers shown correctly?

thanks + regards
Ludo
Attached Images
File Type: gif original-excel.gif (133.7 KB, 5 views)
File Type: gif excel-compare-in-BC3.gif (288.6 KB, 5 views)
File Type: gif BC3-fileformats.gif (150.8 KB, 5 views)
Reply With Quote
  #2  
Old 17-Jul-2012, 11:12 AM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 5,430
Default

Hello,

BC3 should follow your current Windows Regional settings. In these settings, is "," currently defined as the Decimal Symbol? Are you using the latest version of BC3 (3.3.4)? All BC 3.x updates are free for 3.x users.
http://www.scootersoftware.com/download.php
__________________
Aaron P Scooter Software
Reply With Quote
  #3  
Old 17-Jul-2012, 11:47 AM
ludo1208 ludo1208 is offline
Visitor
 
Join Date: Jul 2012
Posts: 5
Default

Hello,

yes, my regional settings state "," as decimal symbol.
btw: even if I force "," in BC3 in file formats window (the 3rd attachment in my previous post) as decimal symbol it doesn't work.
And also yes: I am using 3.3.4 (Build 14431) ...
Any ideas?

thanks + regards
Ludo
Reply With Quote
  #4  
Old 18-Jul-2012, 09:41 AM
ludo1208 ludo1208 is offline
Visitor
 
Join Date: Jul 2012
Posts: 5
Default

Hello,

I have found a workaround for my problem:
I duplicated the first row (containing the header) of the excel and then it worked ...
see attachments:
-) Testexcel2.zip contains the excel with 2 header rows and a gif of BC3 made, when loading the file. It showed the decimal numbers correct (although with a decimal POINT instead of the decimal COMMA, but that is not a big issue).
-) Testexcel.zip contains the excel with only 1 header row and a gif of the wrong interpretation of the decimal numbers.

So, I can do it this way, but maybe you can reproduce this behaviour and fix it ;-)

thanks + regards
Ludo
Attached Files
File Type: zip testexcel.zip (69.2 KB, 1 views)
File Type: zip testexcel2.zip (65.2 KB, 1 views)
Reply With Quote
  #5  
Old 18-Jul-2012, 04:28 PM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 5,430
Default

Hello,

In your screen shots, it would appear that your columns contain a mix of numeric and text values. This would cause the column to detect as "Text". It would need to be entirely numeric to detect as "Numeric", which would then treat numbers as numbers instead of text. You can right click any column header to manually switch from the detected value to a different type, but switching to Numeric would then cause issues with the plain text values in the same column.
__________________
Aaron P Scooter Software
Reply With Quote
  #6  
Old 18-Jul-2012, 10:49 PM
ludo1208 ludo1208 is offline
Visitor
 
Join Date: Jul 2012
Posts: 5
Default

Hello,

correct, switching to the other "mode" solves the problem :-)

But the funny thing is, that it's the other way round:
If I switch to "text" the decimal numbers are shown correctly, if I swith to "numeric" the decimal comma is not shown, e.g. "145" instead of "1.45" ... ?!

regards
Ludo
Reply With Quote
  #7  
Old 25-Jul-2012, 12:59 PM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 5,430
Default

Thanks for the update. It appears that when we call Excel from vbscript, it seems to be replacing the ',' with a '.', but when opened BC3 is set to use your System decimal value by default, which is expecting a ','. You can switch this decimal value in BC3 in the Tools menu -> File Formats, select your data format, and in the Type tab, switch the Decimal Symbol from "Use System" to ".". How does this work for you? Does this behavior describe the same scenario you are seeing?
__________________
Aaron P Scooter Software
Reply With Quote
  #8  
Old 31-Jul-2012, 01:11 AM
ludo1208 ludo1208 is offline
Visitor
 
Join Date: Jul 2012
Posts: 5
Default

Okay, i tried the different options:
My excel has still a comma as decimal sign (e.g. "1,45").
Option "Use system": shows "145" if column is defined as numeric, and "1.45" if column is defined as text
Option ".": shows "1.45" regardless whether column is defined numeric or text
Option ",": shows "145" if column is defined as numeric, and "1.45" if column is defined as text

regards
Ludo
Reply With Quote
  #9  
Old 04-Oct-2012, 03:48 AM
derVampir derVampir is offline
New User
 
Join Date: Oct 2012
Posts: 1
Default Any update on this?

Hello,

is there any update on this from your side? I have exactly the same issue here with a data compare we use to parse into a database and we use "," as a decimal separator (german settings). I was able to reproduce everything ludo1208 said.

Any help greatly apprechiated.

Regards, Ralph
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 01:07 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.