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

Exporting to Excel if number format is part of expression

Hi guys,

I need your help please!

I have developed Financial Statements in QlikView and each expression contains if statements as well as the number formatting for the column.

I use 'Expression Default' on the Number tab.

When I export to Excel, I lose all my number formatting.

Apart from copying to Clipboard, is there perhaps another way that I am able to keep my number formatting?

All my % and rounding is now lost, when exporting, so the statements are very difficult to read.

Please advise.

Thanks.

Regards,

Hesten

4 Replies
Not applicable
Author

Anybody?

erichshiino
Partner - Master
Partner - Master

Hi,

I'm not sure if it can be done in another way (Actually, for me it exports with the formats)

but you could write your own exporting macro and then include some code to reformat the resulting sheet

In my attachment I included some samples.

Hope it helps,

Erich

danielrozental
Master II
Master II

As Erich said, I'm afraid it can't be done without a Macro.

mike_garcia
Luminary Alumni
Luminary Alumni

You could use the Text() Function like this:

Text(Num(Sum(Sales), '###,###.##'))

When sending to Excel, it will treat your values as text and therefore will keep the original format.

Since the values will not be numeric, however, you will not be able to "play" with them as you normally would in excel, at least not without some changes after exporting them. Also, the alignment might not be maintained.

Mike.

Miguel García
Qlik Expert, Author and Trainer