A diagonally split cell is a common way to label the top-left corner of a table. For example, in a schedule you might want “Day” in the bottom-left of the corner cell and “Time” in the top-right, separated by a diagonal line, so the cell describes both the row headings and the column headings. Excel has a diagonal border option for this, but Google Sheets doesn’t. There is no built-in “split cell diagonally” command.
You can still get the same look with a few workarounds. This guide covers three methods, from simplest to most precise, and explains the strengths and limitations of each.
Method 1: Use the SPARKLINE Function to Draw a Diagonal Line
The SPARKLINE function normally draws a tiny chart inside a cell. If you give it just two points, it draws a single straight line from one corner to the other, which works as a diagonal divider.
Steps
- Click the cell where you want the diagonal line.
- Type
=SPARKLINE({0,1})and press Enter. This draws a line rising from the bottom-left to the top-right. - For a line from the top-left to the bottom-right, use
=SPARKLINE({1,0})instead. - To change the color, add an options argument, for example
=SPARKLINE({1,0},{"color","black"}).
Limitations
Because the cell contains a formula, you can’t type text into it as well. Use this method when you only need the line, or place your two labels in neighboring cells. The line resizes automatically with the cell, which is a big advantage over drawings.
Method 2: Insert a Drawing Over the Cell
A drawing lets you combine a diagonal line with text in one cell-sized graphic.
Steps
- Resize the target cell so it’s large enough to hold two labels. Drag the column and row borders in the headers.
- Go to Insert > Drawing.
- In the drawing window, choose the Line tool and draw a diagonal line. Hold Shift while drawing to keep the angle steady.
- Click the Text box tool, add your first label (for example, “Time”) near the top-right, then add a second text box for the other label (“Day”) near the bottom-left.
- Click Save and close.
- Drag the drawing so it sits over the cell, and resize it using its corner handles until it lines up with the cell borders.
Limitations
Drawings float over the grid. They don’t move or resize perfectly with the cell if you change row heights or column widths, and they aren’t part of the cell’s data, so sorting and filtering ignore them. Use this method for a finished table layout that won’t change much.
Method 3: Fake It with Text Positioning
If you don’t need an actual line, you can still place two labels inside one cell so they read as a split heading.
Steps
- Click the cell and type the top label, for example “Time”.
- Press Ctrl+Enter (or Alt+Enter on some systems) to add a line break within the cell, then type the bottom label, for example “Day”.
- Add spaces before “Time” to push it to the right, so the two words sit on opposite sides.
- Optionally use Format > Rotation to tilt the text, which gives a slanted, diagonal feel.
This keeps everything as real text inside the cell, which is good for copying, but the alignment depends on font and column width, so it may need adjusting.
Which Method Should You Use?
- Need a clean line that resizes? Use SPARKLINE.
- Need a line and labels in the same cell? Use a drawing.
- Need real, editable text with no extra objects? Use text positioning.
Some people combine methods, for example a SPARKLINE line in the corner cell with labels in the header row and column next to it.
Tips for Better Results
- Make the cell bigger first. Diagonal splits are hard to read in a small cell.
- Match the gridline color. Use a gray or black line that fits the rest of your table’s borders.
- Freeze headers. If the split cell labels a header row and column, freeze them (View > Freeze) so they stay visible.
- Check printing. Use File > Print to preview. Drawings may shift slightly when printed.
Frequently Asked Questions
Does Google Sheets have a diagonal border option?
No. The Borders menu offers top, bottom, left, right, inner, and outer borders, but not diagonal ones.
Can I split one cell into two separate cells?
No. Google Sheets cells can’t be divided. You can merge cells, or split text across columns with Data > Split text to columns, but a single cell can’t become two.
Will the diagonal line keep its shape if I open the file in Excel?
SPARKLINE formulas don’t work in Excel, and drawings may not convert well. If you’ll export to Excel, it’s easier to add a diagonal border in Excel itself.
Summary
Google Sheets can’t split a cell diagonally on its own, but you can draw a diagonal line with =SPARKLINE({1,0}), overlay a drawing with a line and labels, or position two labels with a line break and spacing. Pick the method that matches whether you need a resizable line, labels in the same cell, or editable text.
More Sheets formatting help: how to add borders to cells in Google Sheets and how to merge cells in Google Sheets.

Kermit Matthews runs Live2Tech from just outside Philadelphia. He started on a university help desk, spent years as the IT person for small businesses, and has been writing tech guides full time since 2020. Each guide is checked on a device he owns, and re-checked when a menu moves. More about Kermit.