Set custom formatting for Excel range in C#, VB.NET, Java, C++, PHP and other! http://www.easyxls.com/manual/basics/excel-custom-formatting.html