Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting Null date to Excel displays as 1/0/1900 1

Status
Not open for further replies.

howie99

MIS
Jul 29, 2009
2
US
Hi all,

In CR 10, when exporting to Excel a date field where some records have null dates, the nulls display in Excel as ########. When widening the field, the date displays as 1/0/1900. I understand this is because the null date is transferred as zero and Excel displays a zero date as 1/0/1900.

How do I get the date to display as blank in Excel?

Thanks for your help.
 
In your report,create a formula to use in place of the actual date field:
@DateForm
Code:
If IsNull({DateField}) Then
"" 
Else
ToText({DateField},'MM/dd/yyyy') [COLOR=green]//Case sensitive[/color]




[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Wow, that was easy (after days of spinning my wheels). Thanks, Turkbear!
 
Hi,
no problem, glad to help...



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top