Close Menu
Computing.net
    Facebook X (Twitter) Instagram
    Computing.netComputing.net
    • News
      1. AI
      2. Crypto
      3. Gaming
      4. Hardware
      5. Security
      6. Software
      7. View All

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      AI Trading Bot Loses $441K in Crypto After Decimal Point Mistake

      February 23, 2026

      Tesla (TSLA) Stock: Goodbye Sedans, Hello Robots in Dramatic Production Shift

      January 29, 2026

      Palantir Technologies (PLTR) Stock: Why Bears May Be Wrong About Valuation Concerns

      January 29, 2026

      SUI Token Rallies 40% Following Major Staking Event and CME Futures Announcement

      May 12, 2026

      Chainlink (LINK) Surges to $10.40 as Network Activity Hits Eight-Month Peak

      May 12, 2026

      Dogecoin Whales Ramp Up Accumulation as DOGE Eyes Critical Breakout Levels

      May 12, 2026

      Bitcoin Holds $81K While Burry Flags Nasdaq Bubble and Oil Surges Past $105

      May 12, 2026

      Hamster Kombat: Unraveling TON’s Gaming Phenomenon

      August 7, 2024

      W-Coin: Exploring the Latest Telegram Tap-to-Earn Phenomenon

      August 7, 2024

      Hamster Kombat: 300 Million Players & Counting, HMSTR Token Airdrop Soon!

      July 31, 2024

      Hamster Kombat Developers Work with TON Team on Airdrop Solution

      July 30, 2024

      Nothing Expands Product Line with New AI Feature & Phone Update

      July 31, 2024

      Security Audit Reveals Concerns in Atari’s Blockchain Game on Base

      August 6, 2024

      SideWinder Group Targets Maritime Facilities in New Cyber Espionage Campaign

      July 30, 2024

      OAuth Implementation Flaw Exposes Millions of Websites to XSS Attacks

      July 30, 2024

      Hamster Kombat Players Face Growing Cybersecurity Threats

      July 25, 2024

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      Cookie Crumble: Google Halts Plans to Eliminate Third-Party Cookies in Chrome

      July 23, 2024

      Big Brother is Watching: Apple’s Creepy New Ad Urges iPhone Users to Ditch Chrome

      July 23, 2024

      Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

      May 12, 2026

      Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

      May 12, 2026

      GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

      May 12, 2026

      SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

      May 12, 2026
    • How To

      Batch Files: Tokens and Delimiters (FOR Loops)

      July 31, 2024

      Types of Ethernet Cabling & Electrical Low Voltage Wiring

      July 9, 2024

      What You Should Know About .JSON File Extension

      January 10, 2023

      Bkup File Extension

      November 19, 2022

      HEIC File Extension

      November 19, 2022
    • Office
      1. Excel
      2. Google Sheets
      3. View All

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024

      How to Remove Characters from Right in Excel

      July 30, 2023

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      Bullet Points in Google Sheets

      January 20, 2022

      Sort by Date in Google Sheets

      January 18, 2022

      Google Sheets Timestamp

      January 17, 2022

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024
    • Answers
    • About
    • Contact
    Facebook X (Twitter)
    Computing.net
    Google Sheets

    How to Indent in Google Sheets

    Constantin KioulafasBy Constantin KioulafasDecember 16, 2021
    Twitter LinkedIn Email Telegram
    how to indent in google sheets
    Twitter LinkedIn Email Telegram

    Google sheets is a web-based spreadsheet application and part of the Google Docs Editors Suite.

    It has come into prominence mainly due to the fact that it is free, but also because it allows several users to share and simultaneously edit the same document over the internet.

    Despite its popularity and rich collection of features, no application is perfect and Google sheets is no exception.

    One area where Google sheets is sorely lacking is indentation.

    Indentation is used to make information more readable or to help highlight a hierarchical schema in the data.

    Microsoft Excel offers a very simple and convenient indent option under its Alignment tab, which allows the user to quickly and easily increase or decrease the indentation of any cell or cells.

    In contrast, Google sheets offers no such option, and users are forced to use workarounds to perform such a simple task.

    In this article, we’ll be taking a look at a couple of relatively simple ways to do this.

    We’ll be using the following example sheet which contains a list of addresses.

    The sheet has been sorted on the county column, and the requirement is to indent all county names except for the very first occurrence of each name.

    The result should look like the following.

    Contents:

    Toggle
    • Leading Space Character
    • Custom Number Format
    • Conclusion

    Leading Space Character

    Possibly the simplest way of indenting is to use leading space characters in each cell.

    However, this is a high maintenance solution, especially if there are a lot of cells, where it becomes very time consuming going through each cell.

    One restriction with this method is that the cells need to be formatted as Plain text.

    Cells which have any of the numeric formats, including Date and Time, have their content right aligned by default, as in the case of the zip column in our example sheet.

    But even if you change the alignment to left aligned for a cell with numeric formatting, any leading white space will still be ignored.

    In the case of the zip column in our example sheet, we would lose nothing if we converted the column to Plain text format.

    Date and Time formats can also be converted to Plain text without being compromised.

    In fact, numeric cells converted to Plain text will still work in calculations and formulas.

    To get back to our original aim, we are going to indent the county column cells using the space character.

    For the purposes of demonstration, since a space is a non-printing character, the underscore has been used instead, so that it is easier to discern.

    But almost any character could be used. In the snapshot above, we see the contents of cells G2 to G4 contain the name Ada.

    Our requirement stipulates that the first of the cells containing the county name Ada, should be left as is, and the other two cells, G3 and G4, be indented.

    The same rule has been applied to cell G6 which is as it was, while cells G7 to G11 have been indented.

    Our particular example sheet contains 500 rows, so it would take some time to go through and add spaces to each of the county names.

    What makes this even worse, is that if we wanted to increase or decrease the indenting later on, we would again need to go through all the cells in the column, one by one.

    Custom Number Format

    Surely you say, there must be an easier way.

    The previous solution is quick and easy as long as there are only a few cells that need to be indented.

    Even so, there is indeed an easier way, and it involves using the Custom number format option.

    We start by selecting the entire county column.

    Next, we need to deselect the first occurrence of each name so that we are in keeping with our requirements.

    To do this, hold down the Ctrl key on the keyboard, and left mouse click on each cell to be deselected.

    We are now ready to apply our indentation.

    The good thing about this method as opposed to the previous, is that we don’t need to go through, applying the indent one cell at a time.

    From the Google sheets menu, select Format > Number > Custom number format.

    This will open the Custom number formats dialog box.

    We will be entering our custom format in the very first input field at the top of the dialog box.

    Here again, the underscore character has been used instead of the non printing space character so that it is clearly visible.

    However, using an underscore in the Custom number formats entry, will also produce a space in the resulting output.

    Hence, you can use either spaces or underscores, whichever is more convenient.

    In our example above, there are four underscores followed by the @ character.

    The @ character is required and indicates where the actual contents of the cell will be placed, which in this case is after the spaces.

    Unfortunately, control characters like tabs cannot be used, so if you need a large indentation, add more space (or underscore) characters.

    When satisfied, click on the Apply button, and you should now see your cell contents indented.

    As was stated earlier, the good news with this approach is that if you decide you want to change the size of the indentation, you just need to select the cells again, and repeat the process.

    Conclusion

    While there is no dedicated indentation option in Google sheets as there is in Microsoft Excel, with a little effort using the Custom number format option, it is possible to selectively indent cell content.

    Share. Twitter LinkedIn Email Telegram
    Avatar photo
    Constantin Kioulafas
    • LinkedIn

    Costas has a wide range of experience in Information Technology covering computer hardware, programming, telecommunications, networking, web services, and general IT support. He's worked in various roles such as PHP programmer and web developer, technical and desktop support, hardware repair, system administration. Costas has excellent background in Microsoft Windows and Office Suite (Excel, Word, Powerpoint, etc), as well as a thorough understanding of Networking and Hardware maintenance.

    Related Posts

    How to Subtract in Google Sheets: Complete Guide

    July 31, 2024

    How to Find the Last Monday of the Month in Excel

    July 24, 2024

    Convert Bytes to MB or GB in Excel: 3 Methods!

    July 24, 2024

    What is Information Technology? – Definition, Types, and Examples

    December 6, 2022

    How to Create a Box Plot in Microsoft Excel

    March 1, 2022

    How to Create Bar of Pie Chart in Excel

    March 1, 2022
    Add A Comment

    Comments are closed.

    Latest

    Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

    May 12, 2026

    Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

    May 12, 2026

    GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

    May 12, 2026

    SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

    May 12, 2026

    Trump Dismisses Iran Peace Proposal — Oil Markets React as Hormuz Remains Restricted

    May 12, 2026
    • Facebook
    • Twitter

    Latest Reviews

    Meta Platforms Shares Tumble 8% Despite Strong Q1 Performance Amid AI Investment Surge

    April 30, 2026

    Flush.com Review: Casino & Sportsbook With 275% Welcome Bonus

    March 7, 2026

    Katsubet Review: Crypto Casino With 300% Welcome Bonus & Free Spins

    March 7, 2026

    7Bit Review: Crypto Casino With 325% Bonus & 250 FS

    March 7, 2026

    Mega Dice Review: Crypto Casino With 200% Bonus & 50 Free Spins, Legit?

    March 7, 2026


    Home / Privacy Policy / Terms & Conditions

    Computing.net © 1996 - 2026 Kooc Media Ltd. All rights reserved. Registered Company No.05695741

    Type above and press Enter to search. Press Esc to cancel.