Skip to content

How to process selected cells in Google Sheets

After finding and selecting cells with Select Special, you often need to do something with that selection — extend it to full rows or columns within the data region, or apply calculations. Instead of manually adjusting selections or writing formulas one by one, Select Special can process your selection automatically.


Select Special provides two processing actions:

ActionDescriptionUse case
Expand SelectionExtend selected cells to data region boundariesSelect full rows or columns within the data region
Add FormulaInsert a formula next to selected cellsCalculate SUM, COUNT, AVERAGE, MIN, or MAX

Use any Select Special action to find cells (e.g., “Entered values”, “Formulas”, “Cells with notes”).

After the search completes, you’ll see the list of found cells. Click Next to proceed to processing.

Select either “Expand Selection” or “Add Formula” and configure the options.

Click Process to execute the action. You’ll see a summary with the results.


Extends your selected cells to the boundaries of the surrounding data region (table).

Choose one of the expand modes:

Expand selection to data row — extends selection horizontally to the data region edges.

DirectionDescription
BothExpand to both left and right edges
LeftExpand only to the left edge of the data region
RightExpand only to the right edge of the data region

Expand selection to data column — extends selection vertically to the data region edges.

DirectionDescription
BothExpand to both top and bottom edges
TopExpand only to the top edge of the data region
BottomExpand only to the bottom edge of the data region
  1. Select Special determines the data region for each selected cell
  2. Each selection is extended in the chosen direction until it reaches the data region boundary
  3. Overlapping selections are merged automatically

Example: Select full rows for highlighted cells

Section titled “Example: Select full rows for highlighted cells”

You have a table with project tasks and want to select the entire row for every cell with a yellow background:

  1. Use “Fill colors” to find all cells with a yellow background
  2. Choose “Expand Selection” → “Full row” → “Both”
  3. Click Process

Result: Every found cell’s selection now spans the full width of the data region, giving you complete rows ready for further action.


Inserts a formula next to your selected cells to calculate values.

OptionValuesDescription
Place formula inNew columnAdd formula to the right of selected data
New rowAdd formula below selected data
FunctionSUMSum of selected values
COUNTCount of numeric cells
COUNTACount of non-empty cells
AVERAGEAverage of selected values
MINMinimum value
MAXMaximum value
  1. Select Special determines the data region for your selection
  2. For each row (or column), it creates a formula referencing the selected cells
  3. Formulas are placed in a new column after your data (or new row below)

You have a spreadsheet with cells highlighted in different colors (e.g., red for urgent, yellow for pending, green for done). You want to count how many text entries exist for each color.

  1. Use “Fill colors” to find all cells with a specific background color
  2. Apply Text filter to include only text values (exclude numbers or blanks)
  3. Choose “Add Formula” → “New row” → “COUNTA”
  4. Click Process

Result: A COUNTA formula appears below your data, showing the number of text values with that fill color.


After processing completes, you’ll see a summary showing:

For Expand Selection:

  • Number of selections expanded
  • Direction used

For Add Formula:

  • Number of formulas added
  • Function used
  • Target location (column or row)