Formatting
Complete guide to formatting spreadsheets - fonts, colors, borders, alignment, and data formats
📋 Format Options Reference
Complete Format Structure
formatOptions = {
// Font properties
bold: true,
italic: false,
underline: false,
strikeout: false,
font: "Arial",
fontsize: 11,
fontColor: "black",
// Background color
fgcolor: "white",
bgcolor: "white", // Alias for fgcolor
// Alignment
alignment: "left", // left, center, right, justify
verticalalignment: "top", // top, center, bottom
// Data format
dataformat: "General", // Excel format code
// Borders
leftborder: "thin", // none, thin, medium, thick
rightborder: "thin",
topborder: "thin",
bottomborder: "thin",
leftbordercolor: "black",
rightbordercolor: "black",
topbordercolor: "black",
bottombordercolor: "black",
// Text control
wraptext: false,
locked: false,
hidden: false
};🔤 Font Formatting
Font Styles
Font Family and Size
Font Colors
🎨 Background Colors
Cell Backgrounds
Alternating Row Colors
📐 Alignment
Horizontal Alignment
Vertical Alignment
Text Wrapping
🔢 Data Formats
Number Formats
Currency Formats
Date and Time Formats
Custom Formats
🔲 Borders
Simple Borders
Border Styles
Border Colors
Table Borders
🎯 Formatting Scopes
Single Cell Formatting
Row Formatting
Column Formatting
Range Formatting
💡 Formatting Patterns
Professional Headers
Financial Reports
Status Indicators
Conditional Formatting (Manual)
📚 Next Steps
FormulasAdvanced FeaturesExamplesLast updated
Was this helpful?
