I've struggled many times to remember the custom format codes in Office. For example, I was creating a chart and wanted to show 1.2M instead of $1,200,000. Finally, I found this wonderful resource.
http://www.igetit.net/newsletters/Y04_02/CustomFormats.aspx