Article ID: 131468
Article Last Modified on 10/6/2003
=CHOOSE(LENGTH(STRING(<Field Name or Cell Reference>,0)),"","0000", "000","00","0","")&STRING(<Field Name or Cell Reference>,0)
=IF(ISERR(LENGTH(<Field Name or Cell Reference>)), CHOOSE(LENGTH(STRING(<Field Name or Cell Reference>,0)),"","0000", "000", "00","0","")&STRING(<Field Name or Cell Reference>,0),<Field Name or Cell Reference>)
&"-0000"
&"-"&CHOOSE(LENGTH(STRING(<Other Cell or field Reference>,0)),"", "000","00","0","")&STRING(<Other Cell Reference>,0)
Additional query words: kbhowto w_works spreadsheet database
Keywords: kbhowto KB131468