How to Rotate Texts in Google Sheets (6 Suitable Examples)

Table of Contents

Table of Contents

If you want to create a compact header, design custom labels, or simply organize information for better readability, rotating text in Google Sheets is quick and simple. This article will help you with some easy methods to rotate text horizontally, vertically, or at any angle using built-in tools and formatting options in Google Sheets.

Rotating text is specially useful for formatting tight spaces, improving visual appearance, and making your spreadsheets more readable and organized.

Key Takeaways

Steps to Rotate Texts in Google Sheets:

โžค Select the cell containing text to be rotated.
โžค Use the Text Rotation button in the Toolbar and choose any preset rotation options, such as Tilt up, Rotate up, or Stack vertically.
โžค You can follow Format > Text Rotation from the menu bar.
โžค Use Custom angle for precise rotation.
โžค Insert a Drawing as a Text Box to rotate texts freely.
โžค Use a formula to stack characters vertically.
โžค Automate text rotation with Google Apps Script for repetitive formatting.

overview image


1

Rotate Text Using the Toolbar Option

This is the easiest and quickest way to rotate text in Google Sheets. Just use the Toolbarโ€™s Rotation Icon.

Here’s a sample dataset regarding studentsโ€™ grades in different subjects. You can rotate any desired text to present the sheet more cleanly and compactly. For that, weโ€™ll simply use the Rotate Text built-in tool from the Toolbar to rotate texts as needed.

Steps:

โžค Select the cells B2 & B3.

Rotate Text Using the Toolbar Option

โžค Click the Text Rotation button on the toolbar.

Rotate Text Using the Toolbar Option

โžค Choose from the following options:

  • None – Horizontal text by default.
  • Tilt Up โ€“ Text leaning upward.

Rotate Text Using the Toolbar Option

  • Tilt Down โ€“ Text leaning downward.

Rotate Text Using the Toolbar Option

  • Rotate Up โ€“ Rotates 90ยฐ counterclockwise.

Rotate Text Using the Toolbar Option

  • Rotate Down โ€“ Rotates 90ยฐ clockwise.

Rotate Text Using the Toolbar Option

  • Stack Vertically โ€“ Stacks one letter per line.

  • Custom Angle โ€“ Enter any specific rotation angle.

โžค After selecting Rotate Up, the result will appear as such:


2

Rotate Text with a Custom Angle

In Google Sheets, Custom Angle in text rotation is mostly used to improve limited space or present more clearly in the form of grade sheets or report tables.

A common case is rotating headers or numbers/grades vertically or diagonally. It allows fitting of texts within narrow columns. Just choose any of the rotation styles from the pre-existing options in the Format menu.

Steps:

โžค Select the cells.
โžค Go to Format > Text Rotation.
โžค Now select  Custom angle to customize the degree of rotation according to your needs.

Rotate Text with Custom Angle

โžค The text will appear rotated as 90ยฐ counterclockwise as here we have selected 90ยฐ from the Custom angle options

Rotate Text with Custom Angle


3

Rotate Texts in Merged Cells

Merged cells are often used in headers or grouped data. You can rotate text here, too.

Steps:

โžค Select your desired cells D4 and D5.

Rotate Texts in Merged Cells

โžค Merge the cells using Format > Merge cells > Merge all.

Rotate Texts in Merged Cells

โžค After selecting the merged cells, use the Text Rotation button or the Format menu to apply rotation according to your choice.
โžค The tilted text will show in a merged cell of D4 and D5.

Rotate Texts in Merged Cells


4

Rotating Using the Drawing Tool

You can use the Drawing tool for more visual freedom. You can achieve precise angled positioning as a freely rotatable text that appears as an image.

Steps:

โžค Selecting your desired cell B2, go to Insert > Drawing.

Rotating Using the Drawing Tool

โžค Click the Text Box icon and draw a text box.

Rotating Using the Drawing Tool

โžค Enter your text and format it as needed.
โžค Use the Rotation Handle above the text box to rotate freely.

Rotating Using the Drawing Tool

โžค Click Save and Close to add it to the Sheet.

Rotating Using the Drawing Tool

โžค Text in B2 will appear rotated per your drawing.

Rotating Using the Drawing Tool

Note:
This method inserts the rotated text as an image object and canโ€™t be edited like standard cell content.


5

Rotate Header Text Using Google Apps Script

If you are creating dynamic sheets from a form or template, you donโ€™t have to rotate text manually every time. A simple script can do it for you, like auto-rotating the headers, and it is easier with Google Apps Script.

Steps:

โžค After selecting the header row from  A1 to E1, go to Extensions > Apps Script.

Rotate Header Text Using Google Apps Script

โžค Paste the following code:

function rotateHeaderRow()  {
const sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
const headerRange = sheet.getRange(โ€œ1:1โ€);
headerRange.setTextRotation(90);
}

Rotate Header Text Using Google Apps Script

โžค Save and click the Run Button.

Rotate Header Text Using Google Apps Script

Note:
This requires authorization to run the script.

โžค Click Review Permission.

Rotate Header Text Using Google Apps Script

โžค An execution log will appear below the code.

Rotate Header Text Using Google Apps Script

โžค The texts will appear vertically aligned.

Rotate Header Text Using Google Apps Script


6

Rotate Text Using a Formula to Subdivide a Cell

Sometimes you might need to display multiple pieces of information in a single cell as multi-level headers. Instead of merging two rows, a formula has to be used to stack โ€œStudentsโ€ and โ€œSubjectsโ€ in a single cell using line breaks and spacing characters.

Steps:

โžค Select A1 where two headers are needed, as Student & Subject.
โžค To format the cell, write this formula:

=โ€Studentsโ€&CHAR(10)&REPT(CHAR(8212),10) &CHAR(10) &โ€Subjectsโ€

Rotate Text Using a Formula to Subdivide a Cell

Note:
CHAR(10) and CHAR(8212) insert line breaks and work as a visual divider. Again, REPT function repeats a dash to create spacing between the two labels.

โžค Press Enter, and the result will show in a subdivided style. Then follow Text Wrapping  > Clip to avoid misalignment.

Rotate Text Using a Formula to Subdivide a Cell

โžค Now customize the angle to -48โฐ (as needed) for better fitting of the texts.

Rotate Text Using a Formula to Subdivide a Cell

โžค Now add space into the formula to adjust the cell content, and then adjust the row height and header column manually as needed.

Rotate Text Using a Formula to Subdivide a Cell

Note:
This is just a visual trick to adjust texts as a proper subdivision.

โžค The result will appear as a subdivision of cell A1.

Rotate Text Using a Formula to Subdivide a Cell

Note:
As Google Sheets doesnโ€™t support diagonal cell borders, visual adjustment is an easy way out.


Practice Resources

Get our practice workbook or necessary files that we have worked with to prepare this article.

Rotate Texts in Google Sheets [Make a Copy]


Frequently Asked Questions

Will text rotation interfere with sorting or formulas?

No, it wonโ€™t. Rotating text is only a formatting change. It doesnโ€™t have any impact on formulas, sorting, or filtering.

Why does rotated text get clipped or misaligned?

When you rotate text upward, long headers may get clipped if the row height is too small. Wrapping the text from the menu bar or rotating downward prevents this clipping. The best solution is to adjust row height and column width accordingly.

Can conditional formatting automatically rotate text?

No, Google Sheets doesnโ€™t support rotating text through conditional formatting rules. It must be applied manually or using a script.

Can images or charts be rotated similarly?

No, images and charts can not be rotated via these methods. You need to edit the images using external tools before you import them into the sheet.

Whatโ€™s the best practice to align rotated text?

The best practice is to adjust the row height and column width after rotating the text, and vertical or middle alignment to center the text. Combine rotation with cell borders or background color for a clean look.


Wrapping Up

Rotating text in Google Sheets offers flexibility and helps make your spreadsheets cleaner and easier to read. Youโ€™ll mostly need it while aligning headers, customizing labels, or making the best use of space. Google Sheets provides multiple ways to rotate texts, from the toolbar to scripts and formulas. Now you can improve your data layoutโ€™s function and look with just a few clicks. Feel free to try these out and share your feedback with us.

Facebook
X
LinkedIn
WhatsApp
Picture of Fariha Tasnim

Fariha Tasnim

Fariha Tasnim is a graduate in Food Engineering and Tea Technology from Shahjalal University of Science and Technology, with a technical background suited to data-focused spreadsheet work. She has two years of experience using Excel and Google Sheets for basic formulas, data entry, and organization. She is interested in contributing to the spreadsheet community by applying her technical knowledge and continuing to build practical spreadsheet skills.
We will be happy to hear your thoughts

      Leave a reply


      Excel Insider
      Logo