Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
mphekin12
Specialist
Specialist

Negative time values export to Excel as ############

Can someone help with an issue I'm having with negative time values showing up as '#########' when data from a straight table is exported to Excel.  As you can see here, the values are correct in QlikView:

QV Screenshot.PNG

But this is what the data looks like once exported to Excel:

Excel Screenshot.PNG

Has anyone else had this issue?  If so can you tell me what you did to correct it?

Thanks!

1 Solution

Accepted Solutions
mphekin12
Specialist
Specialist
Author

Hey all,

If anyone is having the same issue, I found a work around.  I created this formula for the Variance Between A and B column:

=if(interval(B - A, 'hh:mm') < 0,
     '-' &
interval(fabs(B - A), 'hh:mm'),
    
interval(B - A, 'hh:mm')
)

The same formula can be used for the Variance Between A and C column just replace the B with a C.

Here is what the table will look like in QV:

QV Screenshot.PNG

And the data exported out to Excel now looks like this:

Excel Screenshot.PNG

It appears that the Variance columns are now formatted as text, but the data is correct.

I hope this might help someone in the future!

View solution in original post

5 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

See here
how to export qlikview pivot table containing negative hours to excel without replacing those negati...

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
alexandros17
Partner - Champion III
Partner - Champion III

For sure it is not a qlik problem, check Excel settings for date time ....

let me know

mphekin12
Specialist
Specialist
Author

jonathan,

thanks for you suggestion.  i did look at that post but really didn't see a solution.

mphekin12
Specialist
Specialist
Author

alessandro,

i would rather not have to resort to changing excel settings.  it would be ok if i needed to change my settings but to expect hundreds of end users to do the same would not be the best work around.  any other ideas?

mphekin12
Specialist
Specialist
Author

Hey all,

If anyone is having the same issue, I found a work around.  I created this formula for the Variance Between A and B column:

=if(interval(B - A, 'hh:mm') < 0,
     '-' &
interval(fabs(B - A), 'hh:mm'),
    
interval(B - A, 'hh:mm')
)

The same formula can be used for the Variance Between A and C column just replace the B with a C.

Here is what the table will look like in QV:

QV Screenshot.PNG

And the data exported out to Excel now looks like this:

Excel Screenshot.PNG

It appears that the Variance columns are now formatted as text, but the data is correct.

I hope this might help someone in the future!