Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: mlamHi all,
I've come across an unexpected outcome (at least to me) when I'm reading in some data from an Excel file.
Let's say I have the value -10000.23 and I have it in a column in excel but formatted 3 different ways.
Formats:
1) _(* #,##0_);_(* (#,##0);_(* "-"??_);_(@_)
2) #,##0.00;[Red]-#,##0.00
3) 0.00
Visually, in Excel, the values are presented:
1) (10,000)
2) -10,000.23 (in red)
3) -10000.23
where the underlying value was entered as -10000.23 for all records.
When I read this into LAE using the Excel node, visually they are:
1) * (10000)
2) (10000.23)
3) -10000.23
Writing directly to a new Excel file, the records are written as the BRD viewer presented it above.
I know I can use BRAINScript to convert these number values to double using some cleansing but it's not really ideal nor easy to explain to a non-technical end-user.
I tried this in 5.0 and 6.0 with the same result.
I'm not sure whether this is what is expected to happen (for example, we can't vouch for all variations of custom formatting in Excel) or a bug or something else.
Any advice/thoughts?
Example XLS & BRG attached.
Thanks
Michelle
Attachments:
excel_numberformatexample.zip