Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Excel Tutorial
  • Excel Formulas
  • Excel Shortcut Keys
  • Data Analysis in Excel
  • Formatting in Excel
  • Excel Workbooks
  • Statistical Functions
  • Data Visualization in Excel
  • Pivot Tables in Excel
  • MS Excel Quiz
  • Excel Interview Questions
  • Advance Excel
Open In App
Next Article:
How to Add a Column in Excel: Step-by-Step Guide
Next article icon

How to Hide and Unhide Columns in Excel 2024: Easy Steps and Tips

Last Updated : 06 May, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Knowing how to hide and unhide columns in Excel can increase your workflow, especially when working with large datasets. Instead of deleting columns, hiding them allows you to focus on essential information. In this how-to Excel article, you will learn effective methods for hide and unhide columns in Excel. This article covers everything from hiding columns in Excel 2016 to using formulas to manage your spreadsheet's visibility.

How-to-Hide-Columns-in-Excel
How to Hide Columns in Excel

Methods to Hide the Column in Excel

Hiding a column in MS Excel can make your Column invisible but not delete the column. There are different methods to hide a column in Excel listed below:

Method 1: Hide a Column Using Ribbon in Excel

Here's the steps given below to hide a column in MS Excel using Ribbon function. Follow the steps mentioned below,

Step 1: Select Column, Go to Format tab and Choose Hide and Unhide

Select the first cell of the column, here we are selecting A1. Then, in the home got to format in the cells. In format choose Hide & Unhide in Visibility.

How to Hide Columns in Excel
Select Column >> Home tab >> Format >> Choose Hide and Unhide

Step 2: Select Hide Columns and see the output

In Hide & Unhide select Hide Columns option. And check the preview after choosing the hide column option. Now Column A will not appear on the screen.

How to Hide Columns in Excel
Select hide Columns

Method 2: Hide Columns in Excel Shortcut

Below is the Dataset in which you want to Hide columns B and C. Follow the steps given below for your reference to hide columns using keyboard shortcuts.

How to Hide Columns in Excel
Dataset

Step 1: Select Column B and Drag it to Column C

Select the column B and drag it to the column C to select both of the columns.

Step 2: Press the shortcut key 'Ctrl + Zero'

After Selecting the Columns you want to hide, Press "Ctrl+zero(0) " together. You can see the result below, after hiding the columns.

How to Hide Columns in Excel
Press Shortcut key

Method 3: Hide Columns Using a Context Menu in Excel

If in case you don't remember the hotkeys you can also use another simple way to hide columns in Excel, Follow the below steps,

Step 1: Select the columns you want to hide

Step 2: Right-Click and Select Hide option from menu

Right-click the selection and select the Hide option from the menu.

How to Hide Columns in Excel
Right click> Select hide option from menu

Method 4: Hide Excel Columns by Setting the Column Width as Zero

Now In the same Dataset, if you want to hide columns C. Follow the steps to hide column C by Setting the width as Zero.

Step 1: Select the Column you want to hide

Step 2: Right Click, Choose 'Column With' and set it to Zero (0) and Click 'OK'

Right-click on the Selected column, Choose "Column width", set it to 0, and click "ok". 

How to Hide Columns in Excel
Right Click > Choose 'Column With' and set it to Zero (0) >> Click 'OK'

Step 3: Check the Changes

Now, You can see in the below image column C is hidden.

How to Hide Columns in Excel
Check the Changes

Method 5: Hide Column Using VBA Code

If you want to hide Columns B and C in the same dataset but with the help of VBA code. Follow the steps to hide the columns with the help of the VBA code.

Step 1: Click on the Developer tab in the Ribbon, and click "Visual Basic".

Note: If Developer Tab is not in the Ribbon, then you have to turn it on. 

Step 2: Open Visual Basic for Applications, double-click on Sheet 1, Go to the Insert tab, click on Procedure, and specify the name.

In the Visual Basic application window, Double- click on "sheet1". Next from the Insert tab, click "procedure". Specify the name of the procedure and write the code: 

Sub hiding_column()

Worksheets( "Sheet4").Columns("B:C).hidden = True

End sub

How to Hide Columns in Excel
VBA

Step 3: Save the file with .xlsm extension

Now Save the file with the .xlsm extension as it supports macros. 

Step 4: Run tab and Click Run Sub/User from

Form the Run tab, click Run sub/user form." The output is shown in the below image. 

How to Hide Columns in Excel
Run tab > Click Run Sub/User from

How to Hide Unused Column in Excel

Here's the steps given below to focus on your data and hide empty columns for your reference. Follow the procedure to do the same,

Step 1: Select the column after your last data column

Use Ctrl + Shift + Right Arrow to highlight all empty columns to the right.

How to Hide Columns in Excel
Select the column after your last data column

Step 2: Press Ctrl + 0 to hide these columns

This keeps your workspace tidy, showing only what's important to users.

How to Hide Columns in Excel
Press 'Ctrl + Zero'

How to Hide and Show Columns using the Group Feature

Check the whole procedure to hide and show columns using the group feature in MS Excel given below for users reference,

Step 1: Select the columns you want to group (or hide)

Highlight the columns you want to group and hide.

How to Hide Columns in Excel
Select the column you want to group

Step 2: Click on the Data Tab and Select Group

Go to the "Data" tab, select "Group," and choose "Columns" from the dialog box.

How to Hide Columns in Excel
Click on the data tab

Step 3: Choose Columns from the dialog box

Click the minus (-) sign to hide the grouped columns.

How to Hide Columns in Excel
Choose columns from the dialog box

Step 4: Hide Columns

Click the minus (-) sign to hide the grouped columns.

How to Hide Columns in Excel
Select the - icon

Step 5: Preview the Result

How to Hide Columns in Excel
Preview

How to Hide Columns with Plus (+) Sign

You can hide columns with - sign and Expand the Columns with + Sign Using the Above Grouping Feature in Excel

  • To Hide Columns Use - Sign
  • To Unhide Use + Sign

How to Unhide Columns in Excel

Unhiding columns in Excel is a simple process. Follow the below steps to unhide the columns in Excel.

Step 1: Select Columns Around Hidden Columns

Highlight the columns on either side of the hidden column(s).

Step 2: Right-click on the selected columns

Step 3: Select Unhide

From the context menu, click "Unhide."

Also Read:

  • How to delete blank columns in Excel
  • How to swap columns in Excel

Conclusion

Hiding columns in Excel is a straightforward task that enhances your ability to manage and present data effectively. To hide columns on Excel, simply select the column(s) you wish to hide, right-click, and choose "Hidet" from the context menu. If you're dealing with extensive datasets or preparing reports, knowing how to hide columns on Excel can significantly improve your workflow and data management. By learning how to hide a column in Excel, you ensure a cleaner, more organized spreadsheet, making it easier to focus on the most relevant data.


Next Article
How to Add a Column in Excel: Step-by-Step Guide

S

sharmadevesh769
Improve
Article Tags :
  • Excel
  • News
  • Microsoft Office
  • Excel-How To
  • excel
  • How To
  • ExcelGuide
  • MSExcel

Similar Reads

  • How to Unhide and Show Hidden Columns in Excel: Step by Step Guide
    How to Unhide all Columns in Excel- Quick StepsOpen MS Excel >> Select the Entire WorksheetRight-click on Column Headers >> Select "Unhide"Columns VisibleUnhiding columns in Excel is a simple but essential task when working with hidden data. Whether to make a worksheet look cleaner or ac
    9 min read
  • How to Hide and Unhide Columns in Google Sheets
    Managing large datasets in Google Sheets can become overwhelming, especially when dealing with unnecessary or sensitive information. The ability to hide columns in Google Sheets helps keep your workspace clean and focused while unhiding columns in Google Sheets ensures you can access the data when n
    5 min read
  • How to Add a Column in Excel: Step-by-Step Guide
    Need to organize your data better in Excel but unsure how to add a column without disrupting your existing setup? Whether you’re working with a simple list or a complex table, inserting columns is a fundamental skill that increases productivity and keeps your data structured. This guide covers 4 eas
    6 min read
  • How to Freeze and Unfreeze Columns in Excel (With Step-by-Step Examples)
    Freezing and unfreezing columns in Excel is the perfect solution to keep key information like headers or labels visible, regardless of how far you scroll. Whether you're analyzing trends, preparing reports, or managing large datasets, the Freeze Panes feature in Excel can significantly enhance your
    6 min read
  • How to Freeze Top Row and First Column in Excel (2025 Updated)
    When working with large datasets in Excel, it can be challenging to keep track of key headers and labels as you scroll through rows and columns. Fortunately, Excel provides a powerful feature called Freeze Panes, which allows you to lock specific rows, columns, or both in place, making it easier to
    6 min read
  • How to use Copilot in Excel with Examples (Step-by-Step Guide)
    As of 2024, Microsoft introduced a new feature called Copilot for Excel, part of the broader Microsoft 365 suite, designed to enhance productivity and streamline data manipulation using AI-powered tools. The introduction of Excel Copilot is transforming how professionals across industries manage and
    9 min read
  • How to Enable Macros in Excel (2025): Step-by-Step Guide
    How to Activate Macros in Excel - Quick StepsOpen the Excel workbook.Click Enable Content in the yellow security warning bar.Go to File > Options > Trust Center > Trust Center Settings > Macro Settings.Choose the desired macro setting (e.g., Enable All Macros for trusted files).Save the
    9 min read
  • How to Convert an Excel to a Google Sheet : 4 Easy Ways
    Everyone has their preferred spreadsheet tool. For some, it’s Microsoft Excel, while others swear by Google Sheets. Even though they might look similar to the untrained eye, personal preferences and specific use cases often dictate the choice. But in a collaborative world, working with people who us
    7 min read
  • How to Compare Two Columns in Excel : Easy and Quick Methods
    In the world of data analysis, knowing how to compare two columns in Excel is a fundamental skill that can unveil valuable insights and ensure data accuracy. If you're looking to spot differences, find duplicates, or identify similarities, mastering Excel's compare columns functionality is key. This
    8 min read
  • How to Find Duplicates in Excel (2025 Step-by-Step Guide)
    Managing data effectively in Excel often requires identifying duplicate entries, which can clutter your analysis or lead to inaccuracies. Knowing how to find duplicates in Excel is essential for maintaining data integrity. From using COUNTIF to find duplicates to applying advanced filters and PivotT
    9 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences