cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting excel number exporting as string

FGRak
Discoverer
0 Kudos
123

Hi

Using Crystal Reports 2020, I have a formula that checks if a date field is less than the current date and if it is then return an field that is an amount. However, when I export to excel XLSX as data only it exports as a string. How can I get it to export as a number please?

I have formatted the field to number with 2 decimals places.

This is the formula

If {InvcHead.DueDate} < CurrentDate And {InvcHead.DueDate} >= CurrentDate - 30 Then ToNumber({InvcHead.InvoiceAmt})Else ToNumber(0)

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

FGRak
Discoverer
0 Kudos

Managed to resolve the issue. The field was using the grouped field rather than the actual formula field. The export now is in number format.

Answers (0)