Making lines in excel

To start a new line of text or add spacing between lines or paragraphs of text in a worksheet cell, press Alt+Enter to insert a line break.

  1. Double-click the cell in which you want to insert a line break.

  2. Click the location inside the selected cell where you want to break the line.

  3. Press Alt+Enter to insert the line break.

To start a new line of text or add spacing between lines or paragraphs of text in a worksheet cell, press CONTROL + OPTION + RETURN to insert a line break.

  1. Double-click the cell in which you want to insert a line break.

  2. Click the location inside the selected cell where you want to break the line.

  3. Press CONTROL+OPTION+RETURN to insert the line break.

To start a new line of text or add spacing between lines or paragraphs of text in a worksheet cell, press Alt+Enter to insert a line break.

  1. Double-click the cell in which you want to insert a line break (or select the cell and then press F2).

  2. Click the location inside the selected cell where you want to break the line.

  3. Press Alt+Enter to insert the line break.

  1. Double-tap within the cell.

  2. Tap the place where you want a line break, and then tap the blue cursor.

    Insert line break

  3. Tap New Line in the contextual menu.

    New line

Note: You cannot start a new line of text in Excel for iPhone.

  1. Tap the keyboard toggle button to open the numeric keyboard.

    Keyboard switch

  2. Press and hold the return key to view the line break key, and then drag your finger to that key.

    Line break button

To Draw a line in excel, follow these steps:

  1. In the Insert tab under illustrations, click on shapes.
  2. When the dialog box appears to go to the line section,
  3. Select any type of line from the various given options to draw a connection.

Contents

  • 1 How do I insert lines in Excel?
  • 2 How do I make lines in one cell in Excel?
  • 3 How do I make the lines in Excel print?
  • 4 How do I draw a line in an Excel column?
  • 5 How do I make two lines of text in Excel?
  • 6 How do I make text rows in Excel?
  • 7 How do you split a cell into multiple lines in Excel?
  • 8 Why are gridlines not showing in Excel?
  • 9 How do I show the gridlines in Excel after filling?
  • 10 How do I keep the lines in Excel when I highlight?
  • 11 Does Excel have text rows?
  • 12 How do I convert columns to rows with text in Excel?
  • 13 How do you split a cell into 3 rows in Excel?
  • 14 What does Ctrl J do in Excel?
  • 15 How do I add gridlines in Excel chart?
  • 16 What are grid lines?

How do I insert lines in Excel?

To start a new line of text or add spacing between lines or paragraphs of text in a worksheet cell, press Alt+Enter to insert a line break. Double-click the cell in which you want to insert a line break (or select the cell and then press F2). Click the location inside the selected cell where you want to break the line.

How do I make lines in one cell in Excel?

With these simple steps you can control exactly where the line breaks will be.

  1. Click on the cell where you need to enter multiple lines of text.
  2. Type the first line.
  3. Press Alt + Enter to add another line to the cell. Tip.
  4. Type the next line of text you would like in the cell.
  5. Press Enter to finish up.

How do I make the lines in Excel print?

Print gridlines in a worksheet

  1. Select the worksheet or worksheets that you want to print. For more information, see Select one or multiple worksheets.
  2. On the Page Layout tab, in the Sheet Options group, select the Print check box under Gridlines.
  3. Click the File tab, and then click Print.
  4. Click the Print button.

How do I draw a line in an Excel column?

To Draw a line in excel, follow these steps:

  1. In the Insert tab under illustrations, click on shapes.
  2. When the dialog box appears to go to the line section,
  3. Select any type of line from the various given options to draw a connection.

How do I make two lines of text in Excel?

5 steps to better looking data

  1. Click on the cell where you need to enter multiple lines of text.
  2. Type the first line.
  3. Press Alt + Enter to add another line to the cell. Tip.
  4. Type the next line of text you would like in the cell.
  5. Press Enter to finish up.

How do I make text rows in Excel?

Convert one cell to multiple cells/rows with Text to Column and Paste Special in Excel

  1. Select the cell you want to convert its data, and click Data > Text to Column, see screenshot:
  2. In the pop-up dialog, check Delimited check box, and click Next.
  3. Check Comma check box only in the dialog, and click Finish.

How do you split a cell into multiple lines in Excel?

Split cells

  1. Click in a cell, or select multiple cells that you want to split.
  2. Under Table Tools, on the Layout tab, in the Merge group, click Split Cells.
  3. Enter the number of columns or rows that you want to split the selected cells into.

Why are gridlines not showing in Excel?

Click on the View tab, then check the box for Gridlines in the Show group. If the background color for a cell is white instead of no fill, then it will appear that the gridlines are missing. Select the cells that are missing the gridlines, or hit Control + A to select the entire worksheet.

How do I show the gridlines in Excel after filling?

Click File > Excel > Options. In the Advanced category, under Display options for this worksheet, make sure that the Show gridlines check box is selected.

How do I keep the lines in Excel when I highlight?

In the Home tab click Cell styles, right click on Normal, click Modify -> Format -> Border. For Line Color, select that gray. For Presets, select Outline. Done.

Does Excel have text rows?

Excel does not have the Text to Row tool like Text to Column. We will use the Transpose tool to convert our Text to Rows.

How do I convert columns to rows with text in Excel?

#1 Using Excel Ribbon – Convert Columns to Rows with copy and paste

  1. Select the whole data and go to the HOME tab.
  2. Click on the Copy option under the Clipboard section.
  3. Then click on any blank cell where you want to see the data.
  4. Click on the Paste option under the Clipboard section.
  5. This will open a Paste dialogue box.

How do you split a cell into 3 rows in Excel?

Split cells

  1. In the table, click the cell that you want to split.
  2. Click the Layout tab.
  3. In the Merge group, click Split Cells.
  4. In the Split Cells dialog, select the number of columns and rows that you want and then click OK.

What does Ctrl J do in Excel?

What is Ctrl J in Excel? So, instead of the ALT+Enter shortcut we need to enter CTRL+J, this is the shortcut to the line break which is character 10 in the ASCII control code. You can search for line breaks using this shortcut instead. So if we want to find and place out line breaks with a space.

How do I add gridlines in Excel chart?

Click the chart, and then click the Chart Design tab. Click Add Chart Element > Gridlines. Choose the axis that you want to apply the gridlines to or click More Gridline Options to open the Format Major Gridlines pane. You can change the line transparency, add arrows, and apply shadow, glow, and soft edge effects.

What are grid lines?

Definition of grid line
: any of a series of numbered horizontal and perpendicular lines that divide a map into squares to form a grid by means of which any point may be located by a system of rectangular coordinates.

Lines in Excel are used to show connections between two or more data points. However, we can also draw lines without showing any types of relationships in Excel. To draw a line in Excel, we need to go to the “Insert” tab and click on “Shapes,” then, we can choose the type of line we want to draw in Excel.

Table of contents
  • Draw and Insert a Line in Excel
    • How to Insert/Draw a Line in Excel?
    • How to Draw a Line in Excel?
      • Insert Line in Excel Example #1
      • Insert Line in Excel Example #2
    • Explanation of Draw Lines in Excel
    • Things to Remember 
    • Recommended Articles

Earlier, if we needed to draw a particular shape in a document, it was done by a drawing program. The program was separate from the software itself. In this way, the software was dependent on the drawing program if there needed to be any connections drawn out.

But now, in Microsoft Excel, it is easier to draw shapes of any size or desire. So, for example, we can draw a circle, a line, a rectangle, or any shape.

How to Insert/Draw a Line in Excel?

Excel has provided us with the tools required to insert a line or shape or draw a shape in it, rather than depending upon any other third program. In addition, it has a variety of shapes that we can use as the situation requires.

One of the shapes is a “Line.” The line is a collection of points that extends in both directions. We can use it to form certain shapes, such as squares or rectangles, or it can just be a straight line that has an infinite ending to both ends.

The main question arises: how do we draw a line in Excel?

If we go to the “Insert” tab and in the “Illustrations” section, we will find an option for “Shapes.”

draw line example 1

If we click on “Shapes,” it gives us a variety of shapes to choose from. One of the varieties is the “Lines.”

draw line example 1-1

Now, in the line option, we have various types of line options to choose from:

  1. Line
  2. Arrow
  3. Double Arrow
  4. Elbow Connector
  5. Elbow Arrow Connector
  6. Elbow Double Arrow Connector
  7. Curved Connector
  8. Curved Arrow Connector
  9. Curved Double Arrow Connector
  10. Curve
  11. FreeForm
  12. Scribble.

All of these forms of lines are used as a connector in Excel. It shows the relationship, dependency, or connection in Excel. For example, suppose we have various cells with data but which cells refer to which data can be recognized by inserting a line or shape in Excel.

How to Draw a Line in Excel?

To draw a line in Excel, we must follow these steps:

  1. In the “Insert” tab under “Illustrations,” click on “Shapes.”
  2. When the dialog box appears, we must go to the “Lines” section,
  3. Select any line from the various given options to draw a connection.

Like this, we use the elbow arrow connector in “Lines.”

Let us learn how to draw a line in Excel by a few examples:

You can download this Draw Line Excel Template here – Draw Line Excel Template

Insert Line in Excel Example #1

Suppose we have a chart for data. We can see that there is a dip in sales for a company. Rather than going through the whole data and analyzing the issue for a viewer, the chart author can add text to show the reason for the spike and draw a line in Excel to indicate the same.

Have a look at the chart below.

draw line example 1-2

Looking at the chart, we see that they dipped in sales in March, but we do not know why.

  1. We must first insert a text box and write the text for the dip in sales. Then, we must insert a line to indicate the reason.

    draw line excel step 1

  2. Write the text in the text box.

    draw line excel step 2

  3. Now, in the Insert tab under llustrations, click on Shapes.

    draw line excel step 3

  4. A dialog box pops up for different shapes. Select the Lines menu.

    draw line excel step 4

  5. In the Lines option, we can see the option for line shape, which is the first one.

    draw line excel step 5

  6. Now, we must right-click on the mouse and start stretching the line to the extent we want it and release the mouse.

    draw line excel step 6

  7. Next, in the Shape Outline option, click on Weight.

    draw line excel step 7

  8. A dialog box pops up with the various weights or the dimensions for the line. Select anyone suitable like 3 points.

    draw line excel step 8

  9. We have successfully drawn a line for the chart to indicate a connection.

    draw line excel step 9

Insert Line in Excel Example #2

Suppose we have an illustration such as below somewhere in our data. We want to show a relationship between them.

draw line example 2

We will use the elbow arrow connector in line to show that the main is related to both sub 1 and sub2.

Step #1 – In the “Illustrations” under the “Insert” tab, click on “Shapes.”

step 1 -click on Shapes

Step #2 – Again, a dialog box may appear for the various shapes.

step 2 - click on Shapes

Step #3 – This time, we will choose the “Elbow Arrow” connector, located in the fifth position from the start.

step 3 - Elbow Arrow connector

Step #4 – Now we know we need to show a relation between the main and the two subs. Right-click on the mouse from the main and release the mouse when we drag it to the sub 1 end.

step 4 - relation between subs

Step #5 – This is the first connection. Now again, go to the “Insert” tab and, in “Illustrations,” click on “Shapes.”

Step #6 – Then, click on the “Elbow Arrow” connector in “Lines.”

step 5 - Elbow Arrow connector

Step #7 – Again, start from the main by right click and release the click in the sub 2’s end.

step 6 - click sub 2's end

Explanation of Draw Lines in Excel

The lines in Excel are inserted to show connections between two points.

We can also use it to draw shapes if used in free form. For example, “Draw the line” in Excel acts as a connector as in the above example. It showed the connection between the main and the other two subs.

Things to Remember

  1. Lines should start at one point and end at another point.
  2. To start inserting a line in Excel, we must right-click on the mouse, stretch the line, and release the click when we want to end the line.

Recommended Articles

This article is a guide to Draw Line in Excel. We discuss how to insert/draw a Line in Excel, practical examples, and a downloadable Excel template. You may learn more about Excel from the following articles: –

  • Border in Excel
  • How to Make a Chart in Excel?
  • Use Format Painter in Excel
  • Insert Worksheet in Excel
  • Forecast in Excel

Содержание

  1. Start a new line of text inside a cell in Excel
  2. Need more help?
  3. How to start a new line in Excel cell: 3 ways to insert a line break
  4. How to start a new line in Excel cell
  5. Tips to do a carriage return in Excel
  6. Enable Wrap text
  7. Add multiple line breaks to increase spacing between lines
  8. Create a new line in formula to make it easier to read
  9. How to insert a line break after a specific character
  10. How to create a new line in Excel cell with a formula
  11. Insert / Draw Line in Excel
  12. Draw and Insert a Line in Excel
  13. How to Insert/Draw a Line in Excel?
  14. How to Draw a Line in Excel?
  15. Insert Line in Excel Example #1
  16. Insert Line in Excel Example #2
  17. Explanation of Draw Lines in Excel
  18. Things to Remember
  19. Recommended Articles

Start a new line of text inside a cell in Excel

To start a new line of text or add spacing between lines or paragraphs of text in a worksheet cell, press Alt+Enter to insert a line break.

Double-click the cell in which you want to insert a line break.

Click the location inside the selected cell where you want to break the line.

Press Alt+Enter to insert the line break.

To start a new line of text or add spacing between lines or paragraphs of text in a worksheet cell, press CONTROL + OPTION + RETURN to insert a line break.

Double-click the cell in which you want to insert a line break.

Click the location inside the selected cell where you want to break the line.

Press CONTROL+OPTION+RETURN to insert the line break.

To start a new line of text or add spacing between lines or paragraphs of text in a worksheet cell, press Alt+Enter to insert a line break.

Double-click the cell in which you want to insert a line break (or select the cell and then press F2).

Click the location inside the selected cell where you want to break the line.

Press Alt+Enter to insert the line break.

Double-tap within the cell.

Tap the place where you want a line break, and then tap the blue cursor.

Tap New Line in the contextual menu.

Note: You cannot start a new line of text in Excel for iPhone.

Tap the keyboard toggle button to open the numeric keyboard.

Press and hold the return key to view the line break key, and then drag your finger to that key.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in the Answers community.

Источник

How to start a new line in Excel cell: 3 ways to insert a line break

by Svetlana Cheusheva, updated on March 14, 2023

The tutorial will teach you three quick and easy ways to add a line break in Excel cell: use a shortcut to type multiple lines, Find & Replace feature to add a carriage return after a specific character, and a formula to combine text pieces from several cells each starting in a new line.

When using Excel for storing and manipulating text entries, you may sometimes want a certain part of a text string to start in a new line. A good example of multi-line text could be mailing labels or some personal details entered in one cell.

In most Office applications, starting a new paragraph is not a problem — you simply press Enter on your keyboard. In Microsoft Excel, however, this work differently — pressing the Enter key completes the entry and moves the cursor to the next cell. So, how do you create a new line in Excel? There are three swift ways to do this.

How to start a new line in Excel cell

The fastest way to create a new line within a cell is by using a keyboard shortcut:

  • Windows shortcut for line break: Alt + Enter
  • Mac shortcut for line feed: Control + Option + Return or Control + Command + Return

In Excel 365 for Mac, you can also use Option + Return . Option is the equivalent of the Alt key on Windows, so it seems the original Windows shortcut (Alt + Enter) now works for Mac too. If it does not work for you, then try the traditional Mac shortcuts above.

If you are accessing Excel for Mac via Citrix, you can make a new line with the Command + Option + Return key combination. (Thank you Amanda for this tip!)

To add a new line in Excel cell with a shortcut, please follow these steps:

  1. Double-click the cell where you want to enter a line break.
  2. Type the first part of the text. If the text is already in the cell, place the cursor where you want to break the line.
  3. On Windows, hold Alt while pressing the Enter key. In Excel for Mac, hold Control and Option while pressing the Return key.
  4. Press Enter to finish up and exit the edit mode.

As the result, you will get multiple lines in Excel cell. If the text still shows up in one line, make sure the Wrap text feature is turned on.

Tips to do a carriage return in Excel

The following tips show how to avoid common problems when inserting multiple lines in one cell and demonstrate a couple of unobvious uses.

Enable Wrap text

To see multiple lines in a cell, you need to have Wrap text enabled for that cell. For this, simply select the cell(s) and click the Wrap Text button on the Home tab, in the Alignment group. In some cases, you may also need to adjust cell width manually.

Add multiple line breaks to increase spacing between lines

If you’d like to have a gap of two or more lines between different text parts, press Alt + Enter twice or more times. This will insert consecutive line feeds within a cell like shown in the screenshot below:

Create a new line in formula to make it easier to read

Sometimes, it may be helpful to show lengthy formulas in multiple lines to make them easier to understand and debug. The Excel line break shortcut can do this too. In a cell or in the formula bar, place the cursor before the argument that you want to move to a new line and press Ctrl + Alt . After that, press Enter to complete the formula and exit the edit mode.

How to insert a line break after a specific character

In case you received a worksheet with many one-line entries, breaking each line manually might take hours. Luckily, there is an extremely useful trick to put multiple lines into all selected cells in one go!

As an example, let’s add a carriage return after each comma in a text string:

Done! Multiple lines are created in the selected cells. Depending on your input in the Replace with field, you will get one of the following results.

All commas are replaced with carriage returns:

A line break is inserted after each comma, keeping all the commas:

How to create a new line in Excel cell with a formula

The keyboard shortcut is useful for manually entering new lines in individual cells, and the Find and Replace is great for breaking multiple lines at a time. In case you are combining data from several cells and want each part to start in a new line, the best way to add a carriage return is by using a formula.

In Microsoft Excel, there is a special function to insert different characters in cells — the CHAR function. On Windows, the character code for the line break is 10, so we’ll be using CHAR(10).

To put together the values from multiple cells, you can use either the CONCATENATE function or the concatenation operator (&). And the CHAR function will help you insert line breaks in between.

The generic formulas are as follows:

Assuming the pieces of text appear in A2, B2 and C2, one of the following formulas will combine them in one cell:

=CONCATENATE(A2, CHAR(10), B2, CHAR(10), C2)

In Excel for Office 365, Excel 2019 and Excel 2019 for Mac, you can also use the TEXTJOIN function. Unlike the above formulas, the syntax of TEXTJOIN allows you to include a delimiter for separating text values, which makes the formula more compact and easier to build.

Here’s a generic version:

For our sample data set, the formula goes as follows:

=TEXTJOIN(CHAR(10), TRUE, A2:C2)

  • CHAR(10) adds a carriage return between each combined text value.
  • TRUE tells the formula to skip empty cells.
  • A2:C2 are the cells to join.

The result is exactly the same as with CONCATENATE:

  • For multiple lines to appear in a cell, remember to have Text Wrap enabled and adjust the cellwidth if needed.
  • The character code for a carriage return varies depending on the platform. On Windows, the line break code is 10, so you use CHAR(10). On Mac, it’s 13, so you use CHAR(13).

That’s how to add a carriage return in Excel. I thank you for reading and hope to see you on our blog next week!

Источник

Insert / Draw Line in Excel

Lines in Excel are used to show connections between two or more data points. However, we can also draw lines without showing any types of relationships in Excel. To draw a line in Excel, we need to go to the “Insert” tab and click on “Shapes,” then, we can choose the type of line we want to draw in Excel.

Table of contents

Draw and Insert a Line in Excel

Earlier, if we needed to draw a particular shape in a document, it was done by a drawing program. The program was separate from the software itself. In this way, the software was dependent on the drawing program if there needed to be any connections drawn out.

But now, in Microsoft Excel, it is easier to draw shapes of any size or desire. So, for example, we can draw a circle, a line, a rectangle, or any shape.

How to Insert/Draw a Line in Excel?

Excel has provided us with the tools required to insert a line or shape or draw a shape in it, rather than depending upon any other third program. In addition, it has a variety of shapes that we can use as the situation requires.

One of the shapes is a “Line.” The line is a collection of points that extends in both directions. We can use it to form certain shapes, such as squares or rectangles, or it can just be a straight line that has an infinite ending to both ends.

The main question arises: how do we draw a line in Excel?

If we go to the “Insert” tab and in the “Illustrations” section, we will find an option for “Shapes.”

If we click on “Shapes,” it gives us a variety of shapes to choose from. One of the varieties is the “Lines.”

Now, in the line option, we have various types of line options to choose from:

  1. Line
  2. Arrow
  3. Double Arrow
  4. Elbow Connector
  5. Elbow Arrow Connector
  6. Elbow Double Arrow Connector
  7. Curved Connector
  8. Curved Arrow Connector
  9. Curved Double Arrow Connector
  10. Curve
  11. FreeForm
  12. Scribble.

All of these forms of lines are used as a connector in Excel. It shows the relationship, dependency, or connection in Excel. For example, suppose we have various cells with data but which cells refer to which data can be recognized by inserting a line or shape in Excel.

How to Draw a Line in Excel?

To draw a line in Excel, we must follow these steps:

  1. In the “Insert” tab under “Illustrations,” click on “Shapes.”
  2. When the dialog box appears, we must go to the “Lines” section,
  3. Select any line from the various given options to draw a connection.

Like this, we use the elbow arrow connector in “Lines.”

Let us learn how to draw a line in Excel by a few examples:

Insert Line in Excel Example #1

Suppose we have a chart for data. We can see that there is a dip in sales for a company. Rather than going through the whole data and analyzing the issue for a viewer, the chart author can add text to show the reason for the spike and draw a line in Excel to indicate the same.

Have a look at the chart below.

Looking at the chart, we see that they dipped in sales in March, but we do not know why.

    We must first insert a text box and write the text for the dip in sales. Then, we must insert a line to indicate the reason.

Write the text in the text box.

Now, in the Insert tab under llustrations, click on Shapes.

A dialog box pops up for different shapes. Select the Lines menu.

In the Lines option, we can see the option for line shape, which is the first one.

Now, we must right-click on the mouse and start stretching the line to the extent we want it and release the mouse.

Next, in the Shape Outline option, click on Weight.

A dialog box pops up with the various weights or the dimensions for the line. Select anyone suitable like 3 points.

We have successfully drawn a line for the chart to indicate a connection.

Insert Line in Excel Example #2

Suppose we have an illustration such as below somewhere in our data. We want to show a relationship between them.

We will use the elbow arrow connector in line to show that the main is related to both sub 1 and sub2.

Step #1 – In the “Illustrations” under the “Insert” tab, click on “Shapes.”

Step #2 – Again, a dialog box may appear for the various shapes.

Step #3 – This time, we will choose the “Elbow Arrow” connector, located in the fifth position from the start.

Step #4 – Now we know we need to show a relation between the main and the two subs. Right-click on the mouse from the main and release the mouse when we drag it to the sub 1 end.

Step #5 – This is the first connection. Now again, go to the “Insert” tab and, in “Illustrations,” click on “Shapes.”

Step #6 – Then, click on the “Elbow Arrow” connector in “Lines.”

Step #7 – Again, start from the main by right click and release the click in the sub 2’s end.

Explanation of Draw Lines in Excel

The lines in Excel are inserted to show connections between two points.

We can also use it to draw shapes if used in free form. For example, “Draw the line” in Excel acts as a connector as in the above example. It showed the connection between the main and the other two subs.

Things to Remember

  1. Lines should start at one point and end at another point.
  2. To start inserting a line in Excel, we must right-click on the mouse, stretch the line, and release the click when we want to end the line.

Recommended Articles

This article is a guide to Draw Line in Excel. We discuss how to insert/draw a Line in Excel, practical examples, and a downloadable Excel template. You may learn more about Excel from the following articles: –

Источник

Drawing a line in excel

Drawing a line in Excel (Table of Contents)

  • Introduction to Drawing a line in Excel
  • How to use Drawing a line in Excel?
  • Purpose of Drawing a line in Excel

Introduction to Drawing a line in Excel

To draw a line, we have a command in Excel with the name Shapes in the Insert menu tab. If we go in Shapes drop-down list, see Lines. Line in Excel is used to connect any two cells, boxes, shapes or show to give directions as well. To draw a Line in Excel, select LINE from the Lines section in Shapes and then draw it anywhere on a sheet by holding the left click of the touchpad or mouse, then moving it along any direction we want, then leave the buttons to drop endpoint of the line.

How to use Drawing a line in Excel?

The first thing to know before the drawing is where to find the line. Below are the generic steps that will lead your way:

You can download this Drawing a line in Excel Template here – Drawing a line in Excel Template

Step 1: Click on the “INSERT” Tab as highlighted in below image:

Drawing a line in excel step 1

Step 2: Under the “Insert” tab, you will find “Shapes”, which is a part of the “Illustrations” group

Drawing a line in excel step 2

Step 3: In “Shapes”, you will find a wide variety of lines from line to scribble that we will be used according to our requirement:

Drawing a line in excel step 3

Purpose of Drawing a line in Excel

Below are a few scenarios that you may come across.

Example #1 – Draw a simple line

Step 1: Select “Line” from the “Lines” menu.

Drawing a line in excel example 1

Step 2: Click anywhere in the document or the point from where you want to start, hold and drag your mouse pointer to a different location or the point where you want to end and then release.

Drawing a line in excel example 1.3

Step 3: In case you release the mouse cursor in between, you need not worry at all. Select the line, and you will see two dots at each end of the line as shown in below image:

Drawing a line in excel example 1.2

Step 4: Select the dot from any end to resize the line or to change its direction, and you will get the output as shown below:

Drawing a line in excel example 1.4

Example #2 – Draw multiple lines without selecting “line shape” again

After the first line, if you need to create another line of the same type, you have to select the line again from the “Shapes” menu. What if we need to draw multiple lines without selecting them back from the “Shapes” menu. To overcome this situation, Excel has an inbuilt functionality, i.e. “Lock Drawing Mode”. Below are the steps that you need to follow to draw multiple lines repeatedly.

Step 1: While selecting the type of line, right-click on the required type and select “Lock Drawing Mode” as shown below:

Drawing a line in excel example 2

Step 2: Click anywhere in the document or the point from where you want to start, hold and drag your mouse pointer to a different location or the point where you want to end and then release the mouse cursor.

Drawing a line in excel example 2.1

Step 3: Repeat “Step 2” for every line you need to draw. After you have drawn the number of required lines, Press the “Esc” button.

Drawing a line in excel example 2.2

Example #3 – Draw an arrow in a flow diagram

Imagine you need to create a flow diagram to explain the process or steps you follow for a certain project. In this situation, a simple line might not be useful as you need to specify the direction of the flow. We typically use “Line arrow” for such situations.

Below are the steps you need to take to draw it:

Step 1: Select “Line Arrow” from the “Lines” menu.

Drawing a line in excel example 3.1

Step 2: Click anywhere in the document or the point from where you want to start, hold and drag your mouse pointer to a different location or the point where you want to end and then release the mouse cursor.

Drawing a line in excel example 3.2

Example #4 – Format the line to make it more presentable

Sometimes we need to present our work to others in both the professional and personal world. One thing we should keep in mind is that we might have to make it look visually appealing according to the situation and all you need to do is follow the below set of steps:

Step 1: Select the line which you want to format.

Note: You can also select multiple lines to format them in the same manner in one go and avoid repeating the steps.

Drawing a line in excel example 2.4

Step 2: Select the “Format” tab under the “Drawing Tools” as highlighted below:

Drawing a line in excel example 4

Under the “Format tab”, you will have access to a lot of different options. You can change the color of the line or its width/thickness. You can even add some visual effects to it to make it more visually appealing.

To format Color:

Step 3: Now, select “Shape Outline” from the “Format tab” and choose the desired color for your line.

Drawing a line in excel example 4.2

To format Size:

Step 3: Now, select “Shape Outline” from the “Format tab” and choose “Weight” and then the required width.

Drawing a line in excel example 4.3

Drawing a line in excel example 4.4

Similarly, under the “Shapes Outline”, you will find “Dashes” and “Arrows”, which can be used to make the line dotted or to change the direction or type of arrows.

Drawing a line in excel example 4.5

Drawing a line in excel example 4.6

You can also use some pre-defined styles for a quick turnaround. They are available under the header “Shape Styles”, as shown below:

Drawing a line in excel example 4.7

To format Shape effects:

Step 3: To add shape effects, select “Shape Effects” from the “Format tab”, and you will see a wide variety of effects that can be used.

Drawing a line in excel example 4.8

Let us take an example of adding shadow to the line and see it looks like:

Step 4: Select “Shadow” from the “Shape Effects” menu as shown below:

Drawing a line in excel example 4.9

Step 5: Select the required effect from the “Shadow” menu, and you will see an output similar to the one shown below:

Drawing a line in excel example 4.10

Things to Remember

This was an overview of drawing a line in excel and some of its applications. To draw other shapes and format them, all you need to do is select the required shape from the “Shapes” menu and follow the steps we used above to draw a line in excel. You make things look simple; the method of drawing a line in excel will be more helpful.

Some popular types of lines.

  • Line
  • Line Arrow
  • Line Arrow: Double
  • Connector: Elbow Arrow
  • Connector: Elbow Double-Arrow

Some other applications.

  • Used in charts to mark threshold values or as stat markers
  • Used as dividers to segregate the spreadsheet into two or multiple regions.

Recommended Articles

This has been a guide to Drawing a line in Excel. Here we discuss Drawing a line in Excel and how to use Drawing a line in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. Data Table in Excel
  2. Combo Box in Excel
  3. Bubble Chart in Excel
  4. Scrollbar in Excel

Excel is not only a wonderful tool for data entry and data analysis, but also great at making charts, flow charts, simple diagrams, etc.

It’s quite simple in Excel to insert a line and then customize and position it. In fact, you’ll be surprised how many options you get when you need to draw a line in Excel.

You can easily draw a line to connect two boxes (to show the flow) or add a line in an Excel chart to highlight some specific data point or the trend.

Excel also allows you to use your cursor or touch screen option to manually draw a line or create other shapes.

How to Insert a Line in Excel (Using Illustation)

To insert a line in the worksheet in Excel, you need to use the Shapes option. It inserts a line as a shape object that you can drag and place anywhere in the worksheet.

You can also easily customize it- such as change the size, thickness, color, add effects such as shadow, etc.

Below are the steps to insert a line shape in Excel:

  1. Open the Excel workbook and activate the worksheet in which you want to draw/insert the line
  2. Click the Insert tab
Click the Insert tab
  1. Click on Illustrations
Click on Illustration icon
  1. Click on the Shapes icon
Click on Shapes option
  1. Choose from any of the existing 12 Line options
  2. Go to the worksheet, click the left key on your mouse/trackpad and drag the cursor to insert a line of that length
Line inserted in the worksheet

The above steps would instantly insert the line that you selected in step 5.

These are the 12 line options that you have available in Excel:

  1. Straight Line
  2. Line Arrow (with arrow at one end of the line)
  3. Line Arrow Double (arrow at both ends)
  4. Connector: Elbow (use this to connect boxes, this is not a straight line)
  5. Connector: Elbow arrow (arrow at one end)
  6. Connector: Elbow double-arrow (arrow at both ends)
  7. Connector: Curved
  8. Connector: Curved Arrow
  9. Connector: Curved Double-Arrow
  10. Curve
  11. Freeform: Shape
  12. Freeform: Scribble

Adding Multiple Lines in One Go

When you use the above steps, you can only insert any of the line shapes once. If you need to insert it again (say you want to insert 3 lines), you will have to repeat the process two times again.

Instead, you can lock the drawing mode so you can keep inserting the lines in one go.

Below are the steps to lock the line drawing mode:

  1. Open the Excel workbook and activate the worksheet in which you want to draw/insert the line
  2. Click the Insert tab
  3. Click on Illustrations
  4. Click on the Shapes icon
  5. Right-click on any of the line shapes that you want lock (i.e., the one that you want to insert multiple times)
  6. Click on Lock Drawing Mode
Select Lock drawing mode option
  1. Click anywhere in the worksheet

When you do the above steps, you will notice that your cursor changes and remains a plus icon. You can now click and drag and insert multiple lines in one go.

To unlock the line drawing mode, hit the Escape key.

Customizing Lines/Arrows in Excel

Apart from inserting different types of lines, you can also further customize the line shapes you insert.

When you click on any of the line shapes in the worksheet, you will see a new contextual tab appear in the ribbon – the Shape Format tab.

Shape Format tab in the Excel ribbon

In this new tab, you get some additional options to format the lines.

Shape Styles Options

In the Shape Styles group, there are some inbuilt theme styles and preset styles you can use. To see all these options, you can click on the More icon.

Click on More shape styling options icon

Then you can select any of the existing styles and it will be applied to all the selected lines in the worksheet.

More shape styling options

Apart from this, you can also change the line outline by clicking on the Shape Outline option.

Shape outline option

In Shape Outline, you can change the following:

  • Color of the line
  • Weight of the line (thickness)
  • Style of the line (solid, dot, dash, etc)
  • Arrows

And finally, you can also add some Effects to the line, such as shadow, glow, or reflection. This can be done using the Shape Effect options.

Shape Effect Option

To use these, select one or multiple lines to which you want to add the Effects and then use the options in Shape Effect.

Arranging the Lines

If you’re working with more than a few line shapes in Excel, you will find it useful to know about the ‘Arrange’ options.

You can find these in the Arrange group in the Shape Format tab (which only appears when you select any shape in the worksheet).

Shape Arrange options

Following are the options that are available to you:

  • Bring Forward / Send Backward – in case you want to rearrange the shapes
  • Selection Pane – this opens a pane on the right where you can see all the shapes in the worksheet. You also have the option to hide some shapes from this pane
  • Align – To align the lines left/center/right or top/middle/bottom. This comes in handy when working with multiple shapes where you want these shapes to be neatly aligned
  • Rotate – to change the angle to the line
  • Group – to group mutiple lines/shapes. For example, you can group lines and boxes using this so they will move/size together.

Note that most of the shape ‘Arrange options’ will become available only when you have more than one shape in the worksheet.

Example 1 – Adding a Line to Connect Boxes/Shapes

Now that I’ve covered the basics of how to insert and format line shapes in Excel, let me show you a couple of examples of how you can use this in real life.

A common example is when you have boxes in the worksheet and you want to connect these boxes using lines. These could be simple lines or lines with arrows that also show the flow

Below I have an example, where I have two boxes, and I want to draw lines between these to connect them.

Boxes to connect with a line

Below are the steps to do this:

  1. Click the Insert tab
  2. Click on Illustrations
  3. Click on Shapes
  4. Click on the Line icon
  5. In the worsheet, click on the right border of the first box and drag the cursor to the left border of the second box.

This will insert a line and you will get something as shown below.

Boxes connected with arrow

You can also use different styles of the lines, such as with arrows or connectors.

Example 2 – Adding a Line in Excel Charts

Apart from connecting boxes and making flowcharts, arrows are also useful when you want to highlight specific data points in a chart in Excel.

Below is an example where I wanted to highlight one specific data point with some context, so I added some text in the chart and then used an arrow to point that text towards one specific data point.

Line drawn to connect data label to box

You can format the line using the same colors used in the chart, or you can use a contrasting color to make it stand out.

How to Draw a Line in Excel (Using Cursor / Touch)

So far, I have covered how to insert a line shape in Excel that you can drag and drop anywhere in the worksheet and format the colors, thickness, etc.

But there is also an option to manually draw a line or shape in Excel.

The Draw option in Excel allows you to use your cursor (or a pen or touch if you have a touch screen) and draw on the screen.

You can use it to quickly draw some shapes and lines – such as a simple flow chart or an organization chart.

It won’t look as neat and clean as the shapes that you can insert, but in some cases, it could be faster and more useful – for example, if you are trying to show a process in excel on a call or in a presentation.

You can access these options in the Draw tab in the ribbon, where you can select the pen (with different colors and thickness) and use it for drawing lines or shapes.

Draw tab in the ribbon

You can change the pen color and size by clicking on the downward arrow that appears when you select any pen.

In case you don’t see the Draw option in the ribbon, right-click on any of the existing ribbon options and click on Customize the Ribbon. In the Excel Options dialog box that opens, check the Draw option (in the right pane) and click OK.

While using the Draw option is quite easy and self-explanatory, there is one useful feature that I want to highlight – Ink to Shape.

Using the Ink to Shape option, you can draw lines and shapes in the worksheet, and then use this option to convert these into neat-looking shapes (such as proper straight lines and boxes/squares/rectangles).

Below is an example of something I drew using my cursor.

Hand drawn shape

And now below are the steps to convert these hand draw boxes and lines into proper shapes:

  1. Click the Select Object option in the Draw tab
  2. Select the shapes you want to convert
  3. Click on the Ink to Shape option

Here is the result I got:

Hand drawn Shape converted to regular boxes

The above option will try its best to convert your free-form hand-drawn shapes into proper lines and boxes.

This feature is not perfect sometimes can’t understand the shapes. But it still works well and can save you a lot of time if you have a lot of these hand-drawn shapes that need to be converted.

In this tutorial, I covered how to draw a line in Excel using the insert shapes options and the draw options.

I hope you found this tutorial useful!

Other Excel tutorials you may also like:

  • How to Split a Cell Diagonally in Excel (Insert Diagonal Line)
  • How to Remove Dotted Lines in Excel (3 Easy Fix)
  • How to Add a TrendLine in Excel Charts
  • How to Insert and Use a Radio Button (Option Button) in Excel

See all How-To Articles

This tutorial demonstrates how to draw lines in Excel and Google Sheets.

draw lines 1

Draw Lines in Excel

Say you have shapes in your sheet that you want to connect with lines.

  1. To draw lines, in the Ribbon, click on Insert > Shapes > Lines.

draw lines 2

  1. When the cursor changes to a plus sign, you can start to draw lines.

draw lines 3

As a result, the lines are added to your sheet.

draw lines 4

Change the Line Weight

If you want, you can change the lines’ properties, such as color, weight, and style. To change the weight of the lines, follow these steps:

First, select the lines for which you want to change the color. Then, in the Ribbon, click on Shape Format > Shape Outline > Weight. Finally, choose the desired line weight.

draw lines 9

As a result, the weight of the selected lines is changed.

draw lines 11

Change the Line Color

To change the color of the lines, select the lines you want to change. Then, in the Ribbon, click on the Shape Format > Shape Outline. Choose a color.

draw lines 10

As a result, the color of the selected lines is changed.

draw lines 7

Draw Lines in Google Sheets

  1. To draw lines in Google Sheets, in the Menu, click on the Insert, and in the drop-down menu, choose Drawing.

draw lines 12

  1. The Drawing window opens. In the menu, click on the Line icon and choose the line type.

draw lines 13

  1. Use the cursor to draw your lines.

draw lines 18

Change Line Weight in Google Sheets

You can also change the properties of the lines, such as color, style, and weight. To change the weight of the lines, follow these steps:

  1. Select the lines you want to change.
  2. Then in the Toolbar, click on the Weight icon.
  3. From the drop-down menu, choose the desired weight of the line.

draw lines 15

As a result, the weight of the selected lines is changed.

draw lines 17

Adding lines to your Excel spreadsheet can help organize your information to create a more professional look for business documents. Excel features two basic methods for adding lines. You can add a single border to a range of cells, or you can use the drawing tool to create a variety of straight, curved and even diagonal lines.

Cell Borders

Step 1

Select the «Home» tab at the top of Excel, then click the downward pointing arrow next to the small square symbol in the «Fonts» section of the toolbar. This will open the «Borders» drop-down menu.

Step 2

Select the «Line Color» or «Line Style» options if you want to customize your line. You can change its color and thickness, or choose other features such as double lines or dotted lines.

Step 3

Choose the «Draw Borders» option when you are ready to create the line.

Step 4

Click on the worksheet at the point where you want to begin your line. While holding down the mouse button, move your pointer to the location where you want to end the line, then release the mouse button. For better accuracy, begin your line by clicking at the intersection of a row and column.

Step 5

Double-click anywhere on the worksheet to disable the tool and resume normal editing.

Drawing Tool

Step 1

Select the «Insert» tab at the top of Excel and click «Shapes» in the «Illustrations» section of the toolbar.

Step 2

Select the first option under «Lines» in the drop-down menu to create a straight line. Select one of the other options to create a curved line or specialty line.

Step 3

Click at the point where you want to begin your line. While holding down the mouse button, move to the point where you want to end the line and then release the mouse button.

Step 4

Adjust the length of the line by clicking on the line to make small circles appear at each end of the line. Click one of the circles and drag it to another point on the worksheet. You can move a line by first clicking the line to select it, and then dragging it to a new location.

References

Tips

  • If you wish to add a new row of cells, simply right-click on the row header directly below the location where you want the new row, choose «Insert» from the pop-up menu and click «Insert Row Above.»

Warnings

  • Information in this article applies to Microsoft Excel 2013. It may vary slightly or significantly with other versions or products.

Writer Bio

Alan Sembera began writing for local newspapers in Texas and Louisiana. His professional career includes stints as a computer tech, information editor and income tax preparer. Sembera now writes full time about business and technology. He holds a Bachelor of Arts in journalism from Texas A&M University.

Image Credit

Photos.com/Photos.com/Getty Images

Like this post? Please share to your friends:
  • Making line in word
  • Mapinfo таблицу в excel
  • Making line charts excel
  • Map of word walls
  • Making letters small in word