

Select column C and change the font to Webdings. Initially, you will get a column of 5 and 6. If you prefer the filled triangles from Wingdings 3, use =IF(B2>B3,"p","q"). Use a formula such as =IF(B2>B3,5,6) to use the Webdings symbols. Then, format those cells to use the Webdings font. The strategy is to write an IF statement that produces a 5 for positive and a 6 for negative.

If the price for the day goes up, I want to display an up symbol.

The following example shows how to set different style-specific properties on Excel rows, columns and cells.Problem: I have a series of closing stock prices. When you're modifying the style of multiple cells, we recommend that you use a memory-optimized approach of applying the formatting on the cell range, entire row or entire column instead of formatting each cell individually. You can format one or more cells through the Style property on ExcelCell.Style, CellRange.Style, ExcelRow.Style, and ExcelColumn.Style. For more information see the Inline Text Formatting example. You can also set font formatting like name, size, color, italic, boldness, underlining, subscript and superscript.īesides styling the whole cell, you can also style individually different parts of the cell's content. You can set cell styles like alignment, indentation, borders, shading, protection, number format and more.

With GemBox.Spreadsheet you can style and format an Excel file from C# and VB.NET.
