Skip to main content

Excel

77 commands. Toolkit id ooa.excel.

CommandWhat it does
Append workbookCopy every sheet of another workbook file to the end of this workbook; clashing names get a number suffix.
Append worksheetCopy one sheet, chosen by name or position, from another workbook file to the end of this workbook.
Autofit columnsMake columns just wide enough for their contents, like double-clicking a column border in Excel.
Break workbook linksReplace formulas that refer to other workbooks, or to one chosen workbook, with their last calculated values.
Change workbook linkPoint the links to one source workbook at another file; the new file should have the same sheets and cells.
Clear filterShow every row a filter hid on a sheet and remove the sheet's Excel filter, or keep its buttons and drop only the conditions.
Clear rangeClear the contents, the formats or both of a range, or of the current selection; the cells stay where they are (Delete cells moves the cells around them).
CloseClose the workbook session, saving the changes first when asked.
Copy rangeCopy a range to another place on the same sheet or another sheet of the workbook, like copy and paste in Excel: everything, values only, formulas only or formats only. Relative cell references in formulas move with the copy.
Copy worksheetDuplicate a worksheet inside the same workbook under a new name.
Create chartAdd a column, bar, line or pie chart of a range: the first column gives the categories, the header row the series names and each further column one series.
Create Excel tableTurn a range with a header row into a named Excel table with a table style, like Ctrl+T in Excel.
Create pivot tableCreate a pivot table from a range with a header row: fields as rows, columns, values (Sum, Count, Average, Max or Min) and filters. Excel fills in the figures when the workbook is opened.
Create workbookCreate a new empty .xlsx file on disk with one named sheet and open it as a session; optionally with a password to open, a password to edit and a sensitivity label.
Create worksheetCreate a worksheet at the end or at a position; when a sheet of that name exists the step stops, unless 'replace' is ticked, which deletes that sheet and everything on it first.
Delete cellsDelete the cells of a range, or of the current selection, and close the gap by moving the cells below up or the cells to the right left.
Delete columnsDelete whole columns and move the columns to the right leftwards.
Delete rowsDelete whole rows and move the rows below up.
Delete table columnRemove a column from an Excel table and move the table cells to its right back by one.
Delete worksheetDelete a worksheet chosen by name or position.
Each row in a worksheetYield each row of a sheet (or of a range) of an open workbook as a record keyed by the header names (Column1, Column2 ... without a header).
Fill down or rightCopy the first row of a range down to its other rows, or its first column right to its other columns, like Excel's Fill Down and Fill Right: values, formulas (with relative references moved) and formats.
FilterReturn the rows of a sheet, a range or an Excel table whose value in one column matches a condition, as a Data Table; optionally also hide the other rows, or put the condition into the file as a real Excel filter.
FindFind cells whose content contains (or equals) a text, in the whole sheet or a range; returns their addresses in search order.
Find next empty cellStarting from a cell, walk along its column or row in a direction and return the first empty cell.
Format cellsSet the number format, font, fill, alignment, wrapping and borders of a range or the selection; only the options given change, the rest of each cell's format stays.
Get all cellsRead the used area of a sheet, or only rows N to M of it, as a table; the first row can be the column names.
Get cellRead one cell, or the active cell; formulas return their calculated value, or the text as Excel displays it.
Get cell addressGive the address (such as B7) of the active cell, of a row and column, or of the cell some rows below a column title.
Get cell colourReturn a cell's fill colour or font colour as a hex value such as #FFC000, or as red, green and blue numbers.
Get column nameGive the letters of a column, from its number (28 becomes AB), from a cell, or of the active cell.
Get current sheet nameReturn the name of the active worksheet.
Get number of rowsCount the rows that hold data, or all rows of the used area, and report the number of the last used row.
Get rangeRead a rectangular range such as A1:D20 as a table.
Get row and column numberSplit a cell address such as B7, or the active cell, into its row and column numbers.
Get sensitivity labelRead the sensitivity label stored in the workbook's MSIP_Label custom document properties.
Get sheet countCount the worksheets in the workbook, with or without the hidden ones.
Get sheet namesList the worksheet names, optionally leaving out hidden sheets.
Get table rangeReturn the address of the smallest rectangle holding all data on the sheet (including pivot tables), or of a named Excel table or pivot table, e.g. A1:D20.
Get workbook linksList the other workbooks this workbook's formulas refer to and the cells that use them.
Go to cellMake a cell the active cell, or move the active cell one step or to the start or end of its row or column, and remember it for later steps.
Go to next empty cellStarting from a cell, walk along its column or row to the first empty cell and make that cell the active cell.
Hide columnsHide one or more columns.
Hide rowsHide one or more rows.
Hide sheetHide a worksheet chosen by name or position; at least one sheet must stay visible.
Insert columnsInsert empty columns before a column, moving the columns to the right.
Insert rowsInsert empty rows before a row number, moving the rows below down.
Insert table columnAdd a named column to an Excel table, moving the table cells to its right over by one.
Open workbookOpen an .xlsx or .xls workbook (a local path, onedrive:path or a pasted SharePoint or OneDrive link), or a .csv or .txt file (one sheet, saved back as text), or create a new one, as a named session; can open encrypted files, open read-only and skip hidden sheets.
Protect sheetPassword-protect a worksheet so its locked cells cannot be edited in Excel, choosing which operations people may still perform.
Protect workbookRequire a password to open the file, lock the workbook structure and window layout with a password, or both.
Read cell formulaReturn the formula a cell (or the active cell) holds, or an empty text when it holds a plain value.
Read columnRead the values of one column, from the active cell or a start row down to an end row or the last used row.
Read rowRead the values of one row, from the active cell or a start column to an end column or the last used cell.
Remove blank rowsDelete every empty row inside the used area, or between two rows, and close the gaps.
Remove duplicate rowsRemove the rows of a range (or of the used area) that repeat an earlier row, comparing all columns or only the chosen ones, like Excel's Remove Duplicates; the first of each set is kept and the rows below move up inside the range.
Rename worksheetGive a worksheet, chosen by name or position, a new name.
ReplaceReplace text in the cells of a sheet or range, optionally matching case or the whole cell, inside formulas, or only in the first matching cell.
SaveSave the workbook, optionally to a new path (Save as); encrypted workbooks stay encrypted.
Save asSave the workbook to a new file as xlsx, xls or csv, optionally password-protected; after xlsx or xls the session continues on the new file.
Select rangeSelect a range, whole rows, whole columns (given, or those of the active cell) or the whole sheet; later steps see it as the current selection and its top-left cell becomes active.
Set cellWrite a value to one cell, or to the active cell.
Set cell colourGive a cell or range a solid fill colour or a font colour.
Set column widthSet the width of one or more columns, in characters as Excel shows it.
Set formulaPut a formula in a cell, or in the active cell, e.g. SUM(C2:C10).
Set row heightSet the height of one or more rows, in points as Excel shows it.
Set sensitivity labelWrite a sensitivity label into the workbook's MSIP_Label custom properties, replacing any earlier label; this marks the file but does not encrypt it.
SortSort the rows of a range, an Excel table or the used area by one column and an optional second column, ascending or descending, keeping a header row in place; or sort only that column's cells.
Switch to sheetMake a worksheet, chosen by name or position, the active one; later steps with an empty sheet input work on it.
Text to columnsSplit the text of a column into several columns at a delimiter, like Excel's Text to Columns; the parts overwrite the cells to the right.
Unhide all sheetsMake every hidden worksheet visible.
Unhide columnsShow hidden columns again.
Unhide rowsShow hidden rows again.
Unhide sheetMake a hidden worksheet, chosen by name or position, visible again.
Unprotect sheetRemove protection from a worksheet; for .xlsx files the password is checked first.
Unprotect workbookStop asking for a password to open the file, unlock a protected workbook structure and windows (the password must match), or both.
Write from Data TableWrite a table (with column names) starting at a cell.