Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
LesJean
Contributor III
Contributor III

Weird number formatting when exporting to Excel

Hello everyone,

I'm having a bit of an odd problem. When extracting my data from this pivot table:

aaaaaaaaaaaaaaaaa.png

 

Here's the result I get:

bbbbbbbbbbbbbbbbbbbbbb.png

As you can see, numbers starting with 05 are correctly formatted but numbers starting with 6 are formatted in a weird way. I tried playing with the formatting inside Qlik a little but to no avail.

Any help or pointers would be greatly appreciated.

Thank you guys,

LesJean

4 Replies
Or
MVP
MVP

Excel automatically treats numbers 12 digits or longer this way, unfortunately. The specific value shown starting with a 5 is only 11 digits. Since data is exported without formatting, there's no vanilla way to force Excel to show them differently - you'll have to change the setting in Excel (from General to Number), in which case up to 15 digits will be displayed. Anything over 15 digits will need to be formatted as text.

LesJean
Contributor III
Contributor III
Author

Is there any way to work around this limitation by converting these 12 digits as text? I've tried using the Text() function but can't quite make it work...

Or
MVP
MVP

I think you'd have to Text() your field in the script, rather than master item / chart. Not 100% sure though.

JordyWegman
Partner - Master
Partner - Master

Hi LesJean,

Do you use the script editor? If you use this try the following:

Table:
Load
[Old material],
[Description],
text([.. code]) as .. code,
[Planned release date]
from 'Excelsource'
;

 Jordy

Climber

Work smarter, not harder