In Excel, is there a shortcut to hide a wide range of columns without mouse-dragging?

I have a spreadsheet I frequently use , where I always want to hide the D:CE columns . And since that's over 40 columns, I was wondering if there was a keyboard shortcut or command to hide this more quickly than the old shift + ctrl + click

thanks for any tips/guidance

4 Answers

If you know the columns you want to hide, you can simply type the address of the range in the Name Box and press Enter. Once it's selected, you can then right click the a column header in the selected range and choose Hide.

This is the Name Box.
enter image description here

Type D:CE in the Name Box and press Enter to select that range. Then right click a column header in the selected range and choose Hide.

enter image description here

6

Try the following:

Ctrl + G (open the Go To menu)

D:CE then Enter (select your range)

Ctrl + 0 (hide the selected columns)

1

If this is just 1 specific spreadsheet, then you could select the columns (once), then go to "Data" > "Group".

Once grouped, there will be a line (showing which columns are grouped) with a - which you can click to hide the entire group. Once hidden, the button will change to +, which will unhide the entire group.

There will also be 1 (hide all groups) and 2 (unhide 1st-level groups) buttons. You can even have groups within groups, which will create 2nd or 3rd level groups (adding 3 and 4 to the control scheme)

Image showing columns G:N and S:X as open first-level groups, and J:K as a closed second-level group

Once you save the file, groups will remain intact if you reopen it or send it to a colleague.

Shift + Alt + is the shortcut to Group selected Rows / Columns, Shift + Alt + to Ungroup

If you have a cell in a Group selected, then Alt, A, H will hide it, and Alt, A, J will unhide it. Alt, A, U, C will remove all Outline Groups

4

Another option you could use would be to have a Macro which hides/unhides the columns and assign this to a key combination of your choice. - The below Macro will hide columns D:CE if they are visible and make them visible if they are hidden. Assign this to something like Ctrl+Shift+Z And you can hide/unhide the columns with ease.

Sub column_hide() If ActiveSheet.Columns("D:CE").EntireColumn.Hidden Then ActiveSheet.Columns("D:CE").EntireColumn.Hidden = False Else ActiveSheet.Columns("D:CE").EntireColumn.Hidden = True End If End Sub 
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like