How to Remove Underline in Google Sheets

How to Remove Underline in Google Sheets

Google Sheets is a powerful spreadsheet application widely used for various tasks, from simple data entry to complex data analysis.

One common formatting feature found in Google Sheets is underlining. While underlines can be useful for emphasizing certain data, there are instances when you might want to remove them.

In this article, we’ll explore different methods to remove underlines in Google Sheets, giving you more control over your spreadsheet’s appearance and ensuring a cleaner, professional look.

Manual Methods

Using Keyboard Shortcuts

The easiest way to remove an underline from a cell in Google Sheets is by using a simple keyboard shortcut. First, select the cell containing the underlined text. Then, press “Ctrl” + “U” (Windows/Linux) or “Cmd” + “U” (Mac). The underline will disappear instantly, leaving you with clear, unformatted text.

Modifying Cell Formatting

Another method to remove underlines involves adjusting cell formatting. To do this, right-click on the cell with the underline, and choose “Format cells” from the context menu. In the “Format cells” dialog box, navigate to the “Font” tab and uncheck the “Underline” option. Click “OK” to apply the changes, and the underline will be gone.

Adjusting Text Decoration

Google Sheets allows you to customize the text decoration of specific cells or ranges. To remove the underline, click on the cell, navigate to the “Text decoration” icon in the toolbar, and click on the “None” option. This action will remove any underlines associated with the selected text.

Conditional Formatting

Utilizing Custom Formulas

Conditional formatting in Google Sheets allows you to format cells based on specific conditions or criteria. To remove underlines using conditional formatting, open the “Format” menu and select “Conditional formatting.” Then, create a custom formula that targets cells with underlines, such as “=SEARCH(“_”, A1) > 0″. Set the formatting style to have no underline.

Removing Underline Rule

If you previously applied conditional formatting with an underline rule and want to remove it, open the “Format” menu, choose “Conditional formatting,” and locate the rule with underlines. Click on the rule and delete it to remove the underlines.

Using Scripts

Installing Google Apps Script

For more advanced users, Google Apps Script provides a powerful way to automate tasks in Google Sheets. To get started, open your Google Sheet, click on “Extensions” in the menu, and choose “Apps Script.” This opens the Google Apps Script editor, where you can write and execute custom scripts.

Writing a Script to Remove Underline

To create a script that removes underlines, start by defining the function and selecting the target range. Use the setFontLine("none") method to remove underlines from the selected cells. Save the script and run it to apply the changes.

Executing Script

After writing the script, execute it by clicking the play button (▶️) in the toolbar. The script will remove all underlines within the specified range, providing a quick and efficient way to remove underlines from multiple cells simultaneously.

Verifying Results

After executing the script, it’s essential to verify that the underlines have been successfully removed. Check the specified range of cells to ensure that the script executed as expected. If there are any issues, review the script for errors and make necessary adjustments.

Add-ons & Plugins

Exploring Available Tools

Google Sheets offers various add-ons and plugins created by developers to enhance its functionality. Some of these tools are specifically designed to handle formatting tasks like removing underlines.

Installing and Using Add-ons

To install an add-on, open your Google Sheet, click on “Add-ons” in the menu, and select “Get add-ons.” Search for the desired add-on, click “Install,” and grant the necessary permissions. Once installed, the add-on will be available in the “Add-ons” menu for easy access.

Underline Remover

One popular add-on for removing underlines is the “Underline Remover.” It provides a user-friendly interface that allows you to remove underlines in bulk and offers additional options for formatting text in various ways.

Removing Underlines with the Add-on

To remove underlines using the “Underline Remover” add-on, open the add-on from the “Add-ons” menu. Select the range of cells containing underlined text, choose the appropriate options, and click “Remove underlines.” The add-on will process the data, and your Google Sheet will be free from underlines.

Advanced Options

Employing Google Sheets API

For developers and advanced users, the Google Sheets API offers a programmatic way to interact with Google Sheets. By using the API, you can create custom scripts and applications to remove underlines and perform other formatting tasks automatically.

Customizing Removal Settings

When using scripts or APIs to remove underlines, you can customize the settings to tailor the formatting to your specific needs. For instance, you can remove underlines from specific ranges or based on certain conditions defined in your script.


While using the Google Sheets API or custom scripts provides more flexibility, be cautious and thoroughly test your code. Incorrectly implemented scripts or API calls can lead to unintended consequences, affecting your data or formatting.


Can I remove underlines from a single word within a cell without affecting the rest of the text?

Yes, you can. Select the specific word within the cell and follow the methods outlined in the article to remove the underline from that word only.

Will removing underlines affect any other cell formatting?

No, removing underlines will only modify the text decoration in the selected cells, leaving other formatting intact.

Can I automate the removal of underlines in Google Sheets?

Yes, you can use scripts or add-ons to automate the process and save time when dealing with large datasets.

Are there any restrictions on the number of cells that can be processed using add-ons or scripts?

Depending on the complexity of the operation, there might be limitations on the number of cells that can be processed at once. It’s essential to be aware of these limitations when applying changes.

Can I undo the removal of underlines if needed?

Yes, you can always revert the changes made to cells by using the undo option (Ctrl + Z or Cmd + Z) immediately after performing the action. If you’ve closed the sheet, you can use the “Version history” feature to restore a previous version.


In conclusion, Google Sheets offers several methods to remove underlines from cells and ranges. Whether you prefer manual techniques, automated scripts, or add-ons, you now have the knowledge to maintain a neat and professional appearance in your spreadsheets.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top