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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to keep the no critieria cells blank when export to excel-currently fills with 01/00/1900

Status
Not open for further replies.

sfsisa

Technical User
Aug 15, 2008
2
US
Hello, The results of this formula when exported to excel fill the cells that don't meet the criteria with 01/00/1900. How so I get the cells to be no criteria cells to be blank when exported?

if {PR1_EmployeeMaster.HireDate} in Date (2014,07,21) to Date (2014,08,20)and

{PR1_EmployeeMaster.BenefitScheduleCode} in ["01","75","80","83","85","87","90","95"]

then ({PR1_EmployeeMaster.HireDate})

Thank you
Lisa

I am using Crystal 10 with Sage 100 5.0
 
if {PR1_EmployeeMaster.HireDate} in Date (2014,07,21) to Date (2014,08,20)and

{PR1_EmployeeMaster.BenefitScheduleCode} in ["01","75","80","83","85","87","90","95"]

then totext({PR1_EmployeeMaster.HireDate},"MM/dd/yyy")
else " "

You may need to change that date format to "dd/MM/yyyy" depending on where you are.
 
You cal always use a Conditional Format in Excel to make the display appear as BLANK or EMPTY.
 
Thanks Charliy, It fixed the problem. It is much appreciated.

Lisa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top