top of page
Writer's pictureDavid Pang

How to Resize Columns in Google Sheets

Updated: Nov 14, 2023


How to Use Excel Resizing Shortcuts on Google Sheets
How to Use Excel Resizing Shortcuts on Google Sheets - it's possible!

In this article, I will show you how to resize column width and row height in Google Sheets without using your mouse. More specifically, you will learn how you can use Excel’s native shortcuts in Sheets to autofit and set column widths and row heights. Believe it or not, you CAN use Alt + H + O + I to autofit column width in Google Sheets. While these shortcuts do not exist natively in Sheets, there are two main ways to get around this.

Method #1: SheetWhiz Chrome Extension (Free!) The best way to resize columns & rows in Google Sheets is to use the SheetWhiz Chrome Extension. The extension is free to use, works on both PC and Mac, and brings many other core Excel functions over from Sheets, including insert columns & rows, borders, paste special, and trace precedents.

Below is a video of the tool in action resizing columns and rows:

Once you’ve installed SheetWhiz, you will be able to browse through a list of shortcuts, including autofit columns and rows, by clicking the big SheetWhiz button on any Google Sheet.


The SheetWhiz logo should appear in the upper right corner of your spreadsheet
f the SheetWhiz logo does not appear here, it means you are not able to run SheetWhiz on the Sheet you are on. Contact us at https://www.sheetwhiz.com/contact-us to resolve

The resizing shortcuts are in the “Columns/Rows” section:


Auto-Fit Column Width, Auto-Fit Row Height, Set Column Width, and Set Row Height are available shortcuts to use on SheetWhiz
⌥ refers to the “Option” button on a Mac. If you are on a PC, you will see “Alt” instead of ⌥. ^ refers to the Control button. If you are on a PC, you will see “Ctrl” instead of ^

To trigger the shortcuts, you must press and release the keys in the order they are listed. Because I’m writing this on a Mac, the shortcuts in the above screenshot are for a Mac user. The shortcuts will adjust if you are on a PC. Luckily, the default shortcuts in SheetWhiz are the default Excel shortcuts. See the full list below:

Autofit Column Width:

  • PC: Alt + H + O + I

  • Mac: Option + H + O + I

Autofit Row Height:

  • PC: Alt + H + O + A

  • Mac: Option + H + O + A

Set Column Width:

  • PC: Alt + H + O + W

  • Mac: Option + H + O + W

Set Row Height:

  • PC: Alt + H + O + H

  • Mac: Option + H + O + H

You can also customize a shortcut in SheetWhiz if there are keystrokes that are more convenient for you. You can do this by clicking on the shortcut in the menu and changing the key:


You can customize shortcuts using SheetWhiz
Not all keys will be available. In particular, all shortcuts will either start with Control or Option/Alt

I would highly recommend using SheetWhiz not just for sizing columns and rows, but also for its other functionalities including its other Excel shortcuts, trace precedents, and cycling functionalities

Method #2: Record a Macro (Imperfect Solution) The other way to create a shortcut to resize columns and rows would be to record a macro. Note, this is not a perfect solution for a number of reasons.

Why macro recording is not a great solution:

  1. You cannot customize the shortcut to the native Excel shortcuts. Every shortcut must begin with either Ctrl + Alt + Shift on a PC or Command + Option + Shift on a Mac, followed by a single digit number

  2. You are limited to 10 workable macros

  3. Macros are Sheet-specific. You will need to create the same macro for every new Sheet you work on

  4. You will need to create multiple macros for different versions of sizing. For example, you will need a macro for when you want to autosize a single column and another to autosize two columns, etc.

If you want to record a macro, you can do it by going to Extensions → Macros → Record macro


Record Macro in Google Sheets

From there, if you wish to autofit columns, left click on a cell and hit “Resize column”


Resize column on Google Sheets

Then click “Fit to data” and “OK”

"Fit to data" on Google Sheets

Click “Save” for the new macro, making sure you’ve selected “Use relative references” (default) versus “Use absolute references”


Select "use relative reference" when using Record a Macro in order to properly set your "resize" macro

Save the new macro and set the shortcut and that’s it! You should now be able to use the macro in the sheet you’re in to do the specific action that you defined, in this case autosizing a column

Now you can see the Autofit Columns macro in your macro library

Resizing columns and rows is a huge headache in Google Sheets today. You can resize columns by clicking or dragging columns / rows, but you’re out of luck if you’re looking for a shortcut to resize columns natively in Google Sheets. This is why I wanted to present two potential options for resizing columns and rows in Google Sheets 1) SheetWhiz and 2) Record a Macro. Good luck!

11,403 views0 comments
bottom of page