Spreadsheet gas

Resizing Cells in Google Spreadsheets Based on Values

Shou Arisaka
1 min read
Nov 10, 2025

Right-click on the row number or column number and select [Resize row] or [Resize column]. Enter a new height or width in the window that appears.

Note that the display is different if you have a range selected. If you select multiple columns/rows by dragging, you can set them all at once.


I remember having to research the same thing in Excel. Google Spreadsheets has less information available, so research is also difficult


  • GAS
// autoResizeColumn

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

sheet.getRange('a1').setValue('Whenever it is a damp, drizzly November in my soul...');

// Sets the first column to a width which fits the text
sheet.autoResizeColumn(1);

Share this article

Shou Arisaka Nov 10, 2025

๐Ÿ”— Copy Links