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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | Yes | Google OAuth access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Spreadsheet ID | String | Yes | The 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). | |
| Range | String | Yes | A1 range, optionally with the sheet name, e.g. Sheet1!A1:C10; the first sheet when no sheet is named. | |
| Bold | Boolean | No | Bold on or off; unchanged when empty. | |
| Italic | Boolean | No | Italic on or off; unchanged when empty. | |
| Font size | Number | No | Font size in points; unchanged when empty. | |
| Font color | String | No | Text colour as #RRGGBB; unchanged when empty. | |
| Background color | String | No | Fill colour as #RRGGBB; unchanged when empty. | |
| Horizontal alignment | String | No | Horizontal alignment; unchanged when empty. | |
| Number format | String | No | Number format pattern such as #,##0.00, 0% or yyyy-mm-dd; unchanged when empty. | |
| Number format type | String | No | NUMBER | Kind of number format the pattern describes. |
| Underline | Boolean | No | Underline on or off; unchanged when empty. | |
| Strikethrough | Boolean | No | Strikethrough on or off; unchanged when empty. | |
| Font family | String | No | Font name; unchanged when empty. | |
| Vertical alignment | String | No | Vertical alignment; unchanged when empty. | |
| Wrap | String | No | How long text is shown; unchanged when empty. | |
| Merge | String | No | Merge the range (all, each row or each column) or unmerge it; unchanged when empty. | |
| Border style | String | No | Style of every border of the range, inside and out; unchanged when empty. | |
| Border color | String | No | Border colour as #RRGGBB; black when empty. | |
| Endpoint address | String | No | Replaces https://*.googleapis.com for testing or a proxy; leave empty normally. |