banner



How To Add A Vertical Line In Excel Graph

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

Add Vertical Line using Shapes

The easiest way to add vertical line to Excel chart is to draw a line on peak of the Excel Chart using shapes. Follow the steps on how to add a vertical line in Excel graph below:

Stride 1: Select the data that volition be used to create a chart.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

STEP 2:Go to Insert > Line Charts > Line with Markers.Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

STEP 3:Go to Insert > Illustrations > Line.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

STEP 4: Draw the line on meridian of the Nautical chart.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

STEP 5: To increment the weight of the vertical line, Become to Shape Format > Shape Outline > Weight > 3/4 pt.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

This will excel add vertical line to chart!

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

Even though this method is super easy, it comes with its ain drawback.

This line is not linked to the data and hence will non change when you modify the information. So, you will have to adjust this line as and when you update the data.

Add together Vertical Line using XY Besprinkle Plot

To highlight a signal in your chart, you can conspicuously ascertain its position on the x-axis and create a vertical line for that plot.

In this instance, we will be using a scatter chart to highlight the period in the chart that has the maximum sales. Let's see how information technology can be washed:

Stride ane: Select the data that will exist used to create a nautical chart.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

Pace two:Go to Insert > Line Charts > Line with Markers.Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

This is how your sales chart will look like:

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

Now, insert the data for your vertical line highlighting the flow that accomplished the maximum sales.

Step iii:In cells D6 and D7, utilize the formula beneath to extract the sales period with the maximum sales corporeality.

=MATCH(MAX(B5:B16),B5:B16,0)

Here, the MAX Formula volition return the largest sales corporeality in the array provided and the Lucifer Formula will return the relative position of the maximum value in the assortment.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

Footstep 4:In cells E6 and E7, blazon the value 0 and 1 respectively.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

STEP five:Click on the chart and then Become to Chart Design Tab > Select Data.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

Stride 6:In the Select Data Source dialog box, click on the Add button.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

STEP 7:In the Edit Series dialog box, select cell D4 for the Series proper noun box and cells D6:D7 for the Series Values box. Click OK.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

Pace eight: Go to Chart Design > Change Chart Blazon.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

Stride nine: In the Change Chart Type dialog box, select Besprinkle with Directly Line and bank check the box for the secondary axis. Click OK.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

STEP x: Again, Go to Chart Design> Select Data to open the Select Data dialog box. Select Period with Maximum Sales and then click on the Edit button.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

Pace 11: In the Edit Series dialog box, select cells D6 and D7 for X values and E6 and E7 for Y values. Click OK.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

You will a vertical line for the sales menstruation 6 has been created but information technology does not extend to the peak of the chart. Permit's change that and remove the secondary axis label as well!

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

STEP 12: Right-click on the secondary axis and select Format Axis.
Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

STEP xiii: In the Format Axis dialog box, select the Maximum bound as 1 and the Label Position as None.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

Your vertical column highlighting the maximum sales is now ready!

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

This line is dynamic besides. In this updated sales data, the highest sales are at present achieved in the sales period two. The Line nautical chart, every bit well as the vertical cavalcade, gets updated based on the new data.

Add an Interactive Vertical Column in Your Excel Line Chart | MyExcelOnline

Add Vertical Line using Additional column series

The last method is to use an additional column for the vertical line. Let'south swoop into a stride-past-step tutorial on how to add together vertical line in Excel graph:

Stride 1: Add a new column Vertical Line, and place in the commencement value as 100.

vertical-line-02

Footstep ii: Select the entire table, get to Insert > Line Charts > Line with Markers

vertical-line-03

STEP 3:  Select the chart and go to Pattern > Change Chart Type > Combo > Custom Combination

vertical-line-04

STEP four:  For the Vertical Line serial, modify the Chart Type toClustered Cavalcadeand checkSecondary Axis.Press OK.

(This will transform the Vertical Line series into a vertical column in your chart.

Make certain the SALES Menstruation and SALES are Line with Markers Chart Types).

vertical-line-05

Pace 5: Double click your Secondary Axis to view the Format Axis Panel.

SetMaximumto 100, to ensure our Vertical Line extends all the way to the top since we placed in the value of 100.

vertical-line-06

Click on Labels and change theLabel PositiontoNone.

vertical-line-07

STEP 6:  Merely to clean upward our chart, notice there is a Sales Menstruum Serial.

Right click on it and clickDelete.We do non need this.

vertical-line-08

Footstep vii: Double click on the vertical bar, and then that nosotros tin can make information technology slimmer.

vertical-line-09

In theFormat Data Betoken pane, SetGap Widthto500%.

vertical-line-10

STEP 8:  Now it is time to try out our interactive chart!

Drag and drop the Vertical Line value of 100 into another Sales Period and see the cavalcade chart move!

vertical-line-11

Step 9:  There is a cooler trick and we can make the Vertical Bar getDynamic!For this we demand theDeveloper Tab.

If yous do not have the Programmer Tab enabled however, it is very piece of cake to enable this outset.  Go to File > Options

vertical-line-19

Go toCustomize Ribbon > Principal Tabs > Developer.Check this and clickOK.

vertical-line-12

STEP ten:  Go to Developer > Insert > Form Controls > Roll Bar.Drag this horizontally on superlative of the graph.

vertical-line-13

STEP 11:  Right click on the gyre bar and selectFormat Control.

vertical-line-14

STEP 12:  Gear up theMaximum Value to 12.This will draw our sales periods from i to 12.

For the Cell link, place in $D$5,this will prove the value of the Ringlet bar in this prison cell (i.e. which sales period it's pointing to).  PrintingOK.

vertical-line-15

Step 12:  In the Vertical Line cavalcade, place in this formula: =IF(A5=$D$5,100,"")

What this will do, is simply check if the Sales Period matches the value of the Roll bar ($D$v).

If YES, so prepare the value to 100.

Setting the value to 100 volition then make our vertical line show up in that Sales Menstruation!

At present the pieces are well-nigh all in place!

vertical-line-16

Stride thirteen: Double click the lower right corner of the formula cell, which will copy the same formula down the entire column.

vertical-line-17

Your interactive chart is now complete!!!

Endeavor playing around with the scroll bar and see the Vertical Line movement with information technology! Cool hey?

add vertical date line excel chart

HELPFUL RESOURCE:

Brand sure to download our Gratis PDF on the 333 Excel keyboard Shortcuts hither:

Microsoft Excel Training

You tin can acquire more than most how to employ Excel by viewing our Gratuitous Excel webinar training onFormulas, Pivot Tables, Power Query, andMacros & VBA!

Source: https://www.myexcelonline.com/blog/interactive-vertical-column-in-your-excel-line-chart/

Posted by: turnertrah1949.blogspot.com

0 Response to "How To Add A Vertical Line In Excel Graph"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel