Skip to main content

Format cells

Apply bold, italic, font size, text and fill colours, alignment and number format to a range.

Command in the Google Workspace toolkit · id ooa.google/sheets_format_cells · 20 inputs (3 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialYesGoogle OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
Spreadsheet IDStringYesThe spreadsheet: its id, its full link (https://docs.google.com/spreadsheets/d/...), or its exact name in Drive (a name made only of letters, digits, - and _ is read as an id; use the link for such names).
RangeStringYesA1 range, optionally with the sheet name, e.g. Sheet1!A1:C10; the first sheet when no sheet is named.
BoldBooleanNoBold on or off; unchanged when empty.
ItalicBooleanNoItalic on or off; unchanged when empty.
Font sizeNumberNoFont size in points; unchanged when empty.
Font colorStringNoText colour as #RRGGBB; unchanged when empty.
Background colorStringNoFill colour as #RRGGBB; unchanged when empty.
Horizontal alignmentStringNoHorizontal alignment; unchanged when empty.
Number formatStringNoNumber format pattern such as #,##0.00, 0% or yyyy-mm-dd; unchanged when empty.
Number format typeStringNoNUMBERKind of number format the pattern describes.
UnderlineBooleanNoUnderline on or off; unchanged when empty.
StrikethroughBooleanNoStrikethrough on or off; unchanged when empty.
Font familyStringNoFont name; unchanged when empty.
Vertical alignmentStringNoVertical alignment; unchanged when empty.
WrapStringNoHow long text is shown; unchanged when empty.
MergeStringNoMerge the range (all, each row or each column) or unmerge it; unchanged when empty.
Border styleStringNoStyle of every border of the range, inside and out; unchanged when empty.
Border colorStringNoBorder colour as #RRGGBB; black when empty.
Endpoint addressStringNoReplaces https://*.googleapis.com for testing or a proxy; leave empty normally.