How to Split a Cell Diagonally in Google Sheets (3 Quick Ways)

We often need to split cells diagonally for various purposes in Google Sheets or Excel. Like, if you have a dataset containing dates along with months and then if you want to put the title “Dates” and “Months” in the same cell, you may need to split that cell for better and logical understanding. In this article, we have demonstrated 3 easy methods to split a cell diagonally in Google Sheets. The output will be something like the following.

overview to split a cell diagonally in google sheets


A Sample of Practice Spreadsheet

You can download the Google Sheets used to demonstrate methods in this article from here.


3 Methods to Split a Cell Diagonally in Google Sheets

We will be using the following dataset as an example to illustrate the methods in this article. The dataset contains some students’ marks in the subjects Mathematics, Physics, Chemistry and Biology. What we want to do is separate those two titles “Subjects” and “Name” with a diagonal line within Cell B4.

Dataset to describe Methods to Split a Cell Diagonally in Google Sheets


1. Applying Tilt Feature from Toolbar

We can do the required task using the built-in Tilt feature from the toolbar in Google Sheets. Basically, there are two tilt feature options, one is for tilting up and the other one is for tilting down.

Steps:

  • First, remove borders from the Cell range B4:F4 which is along Row 4 as the Tilt function will tilt the borders which will look awkward. So, select the Cell range B4:F4 and then click on the Borders ribbon at the toolbar, then select Clear borders.

removing borders of the headers

  • The borders for that selected range of cells will be cleared.

borders removed from the headers

  • Now, select Cell B4, then click at the end of the word Subjects, add space using Ctrl+Enter and then type “—————–”.

creating line break manually

  • Next, at the toolbar, click the Format menu then go to Rotation and then select Tilt down.

applying tilt down feature from the toolbar

  • Finally, the texts will be tilted and the texts within Cell B4 will be separated diagonally.

cell is splitted diagonally in google sheets

Read More: How to Split a Cell in Google Sheets (9 Quick Methods)


2. Drawing a Diagonal Line Manually

The previous task can be done more precisely by drawing a diagonal line between the texts in Cell B4 manually.

Steps:

  • First, select Cell B4 and organize the texts there as follows.

arranging texts within the cell in a specific way

  • Next, at the top of your toolbar select the Insert menu then click on Drawing.

using the drawing tool from the toolbar

  • After that, a new window titled “Drawing” will appear on your screen as follows.

drawing tool appeared on window

  • Now, from there, draw a diagonal line select the Line ribbon and after that click on Save and Close.

drawing a line diagonally on that

  • Following this, a linear line will appear on your spreadsheet.

line appeared on the spreadsheet

  • Then, resize it by holding the Fill handle icons on the corners and sides of the box.

resizing that line by holding the Fill handle icons

  • Finally, place the resized line along the diagonal of Cell B4.

placing the resized line along the diagonal of the Cell in google sheets

Read More: How to Split Text to Columns Using Formula in Google Sheets


Similar Readings


3. Using SPARKLINE Function

We can easily put a diagonal line in a cell using the SPARKLINE function. The SPARKLINE formula is basically used to highlight maximum and minimum values as well as trends in a range of values, such as seasonal rises or declines or economic cycles. But now we will use this function to put a diagonal line within a cell. Suppose, in the following dataset, we want to insert diagonal lines within Cell range D5:D7.

dataset to Use SPARKLINE Function

Steps:

  • First, activate Cell D5, apply the following formula below and press Enter
=SPARKLINE({0,1})

This will create a black colored diagonal line in Cell D5.

applying the sparkline function

  • You can even modify the color of that diagonal line. Like, if you want to create a green-colored diagonal line then apply the following formula in Cell D5.
=SPARKLINE({0,1},{"color","green"})

changing colors of the diagonal line by SPARKLINE function

  • Now, drag down using the Fill hand icon as shown in the circled portion.

dragging down to apply the SPARKLINE formula in the rest of the cells

  • Finally, the formula will be applied to the rest of the cells as well.

formula is applied to the rest of the cells

  • If you want that diagonal line to be left sided then apply the following formula.
=SPARKLINE({1,0})

left sided diagonal line

Read More: How to Split Cell into Rows in Google Sheets (2 Useful Methods)


How to Split a Cell Horizontally in Google Sheets

We can separate large text strings into two different columns using Google Sheets’ built-in SPLIT function. Assume, in the following dataset, we want to get two separate columns containing First Name and Last Name respectively. That means we have to split those full names into two different cells.

dataset to Split a Cell Horizontally in Google Sheets

Steps:

  • First, in the following dataset, select Cell D5, apply the following formula below and press Enter-
=SPLIT(C5," ")

This function will detect space between the texts in Cell D5 and will separate them into two different cells. Here, these two different cells are Cell D5 & Cell E5 respectively. The output will be as follows-

applying SPLIT formula to Split a Cell Horizontally in Google Sheets

  • After that, use the Fill handle icon as shown in the circled portion to drag down and get the separate text strings for other full names as well.

dragging down to apply the formula in the rest of the cells

  • Finally, the output you will get will be as follows.

final output after applying the split formula

Read More: How to Use QUERY with SPLIT Function in Google Sheets


Conclusion

That’s all about splitting a cell diagonally in Google Sheets. So easy right? Hope this will help with your task. Visit our site officewheel.com to see more related articles.


Related Articles

Adrey

Adrey

Hello! This is Raiyan Zaman Adrey, a fresh graduate in BSc in Civil Engineering from Bangladesh University of Engineering and Technology. From my high school I have been using Excel in which I was always interested and had fun and this led me to do more research on Excel and Google Sheets as both are kinda similar platform. I have always been enthusiastic, self-motivated, reliable and hard working person and for a long time, I am trying to improve myself more and more so that I can face any challenging situation and adapt myself to any environment.

We will be happy to hear your thoughts

Leave a reply

OfficeWheel
Logo