{"id":10472,"date":"2022-07-05T10:54:17","date_gmt":"2022-07-05T10:54:17","guid":{"rendered":"https:\/\/officetuts.net\/excel\/?p=10472"},"modified":"2024-03-26T10:29:18","modified_gmt":"2024-03-26T10:29:18","slug":"add-vertical-line-to-excel-chart","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/","title":{"rendered":"Add Vertical Line to Excel Chart"},"content":{"rendered":"\n
Add-Vertical-Line-to-Excel-Chart<\/a>Download File<\/a><\/div>\n\n\n\n

Dealing with charts in Excel can be stressful to a lot of people, especially when they are asked to do some things that are out of the ordinary scope.<\/p>\n\n\n\n

We will show an example of one of these things- adding a vertical line<\/strong> to Excel charts. We will show how to add the vertical line to a Bar Chart.<\/strong><\/p>\n\n\n\n

Add a Vertical Line to the Bar Chart<\/h2>\n\n\n\n

For our example, we will create a table with yearly sales data:<\/p>\n\n\n\n

\"Graphical<\/figure>\n\n\n\n

We will present this data on a Bar Chart<\/strong> by selecting the data, then going to Insert tab >> Charts<\/strong> and selecting among Column or Bar Charts<\/strong>:<\/p>\n\n\n\n

\"Graphical<\/figure>\n\n\n\n

We have purposefully chosen a bar chart as the vertical line<\/a> would not be as visible in the Column Chart<\/strong> type.<\/p>\n\n\n\n

For the vertical line, we will calculate the average sales<\/strong>.<\/p>\n\n\n\n

So, once we choose a Bar Chart (2-D Bar Chart in our case)<\/strong>, we will create a separate table where we set additional x and y values<\/strong>. X values will be the average of our sales figures<\/strong>, and y values will be set to 0 and 1<\/strong>:<\/p>\n\n\n\n

\"A<\/figure>\n\n\n\n

Once we create this mini table, we will go to our chart, right-click on it and choose the Select Data option<\/strong>:<\/p>\n\n\n\n

\"Graphical<\/figure>\n\n\n\n

On the pop-up dialog that appears (Select Data Source)<\/strong>, we will click the Add button<\/strong>:<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Once on the Edit Series dialog box<\/strong>, we will do the following:<\/p>\n\n\n\n

    \n
  • Select series name in Series name<\/strong> part<\/li>\n\n\n\n
  • Choose the X values<\/strong> in Series values (range E2:E3<\/strong> in our case):<\/li>\n<\/ul>\n\n\n\n
    \"Graphical<\/figure>\n\n\n\n

    We will click OK two times<\/strong> and will have two bars added to our chart. They will be differently colored. We will select them, right-click on them, and then choose the Change Series Chart Type<\/strong> option:<\/p>\n\n\n\n

    \"Chart,<\/figure>\n\n\n\n

    A new window will pop up. In the new window, we will go to the last option- Combo<\/strong>, and choose Scatter with Straight Lines and Markers<\/strong> (one of the XY Scatter charts<\/strong>) for the Average series<\/strong>:<\/p>\n\n\n\n

    \"Graphical<\/figure>\n\n\n\n

    When we click OK<\/strong>, our Average series<\/strong> will be presented as a data point on the y-axis<\/strong>. We will right-click on our chart again, and choose Select Data<\/strong> again.<\/p>\n\n\n\n

    On the Select Data Source<\/strong> window that appears, we will select Average<\/strong> series and click Edit<\/strong>:<\/p>\n\n\n\n

    \"Graphical<\/figure>\n\n\n\n

    In the window that appears, we will leave the name, choose X values (range E2:E3)<\/strong> for Series X values<\/strong>, and choose range F2:F3 for Series Y<\/strong> values:<\/p>\n\n\n\n

    \"Graphical<\/figure>\n\n\n\n

    We will click OK<\/strong>, and we will have a nice vertical line<\/strong> in our chart:<\/p>\n\n\n\n

    \"Chart,<\/figure>\n\n\n\n

    We can now proceed with editing our chart any way we please now.<\/p>\n","protected":false},"excerpt":{"rendered":"

    Dealing with charts in Excel can be stressful to a lot of people, especially when they are asked to do some things that…<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[170,190],"yoast_head":"\nAdd Vertical Line to Excel Chart<\/title>\n<meta name=\"description\" content=\"Learn how to add a vertical line to Excel charts with our easy-to-follow guide! Download the example file and improve your charting skills.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add Vertical Line to Excel Chart\" \/>\n<meta property=\"og:description\" content=\"Learn how to add a vertical line to Excel charts with our easy-to-follow guide! Download the example file and improve your charting skills.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-05T10:54:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-26T10:29:18+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/07\/graphical-user-interface-text-application-descr-1.png\" \/>\n<meta name=\"author\" content=\"Harun Spahic\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Harun Spahic\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/\"},\"author\":{\"name\":\"Harun Spahic\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2\"},\"headline\":\"Add Vertical Line to Excel Chart\",\"datePublished\":\"2022-07-05T10:54:17+00:00\",\"dateModified\":\"2024-03-26T10:29:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/\"},\"wordCount\":434,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/07\/graphical-user-interface-text-application-descr-1.png\",\"keywords\":[\"file\",\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/\",\"name\":\"Add Vertical Line to Excel Chart\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/07\/graphical-user-interface-text-application-descr-1.png\",\"datePublished\":\"2022-07-05T10:54:17+00:00\",\"dateModified\":\"2024-03-26T10:29:18+00:00\",\"description\":\"Learn how to add a vertical line to Excel charts with our easy-to-follow guide! Download the example file and improve your charting skills.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/#primaryimage\",\"url\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/07\/graphical-user-interface-text-application-descr-1.png\",\"contentUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/07\/graphical-user-interface-text-application-descr-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add Vertical Line to Excel Chart\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2\",\"name\":\"Harun Spahic\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g\",\"caption\":\"Harun Spahic\"},\"sameAs\":[\"http:\/\/human.bsru.ac.th\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add Vertical Line to Excel Chart","description":"Learn how to add a vertical line to Excel charts with our easy-to-follow guide! Download the example file and improve your charting skills.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/","og_locale":"en_US","og_type":"article","og_title":"Add Vertical Line to Excel Chart","og_description":"Learn how to add a vertical line to Excel charts with our easy-to-follow guide! Download the example file and improve your charting skills.","og_url":"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/","article_published_time":"2022-07-05T10:54:17+00:00","article_modified_time":"2024-03-26T10:29:18+00:00","og_image":[{"url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/07\/graphical-user-interface-text-application-descr-1.png"}],"author":"Harun Spahic","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Harun Spahic","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/"},"author":{"name":"Harun Spahic","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2"},"headline":"Add Vertical Line to Excel Chart","datePublished":"2022-07-05T10:54:17+00:00","dateModified":"2024-03-26T10:29:18+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/"},"wordCount":434,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/07\/graphical-user-interface-text-application-descr-1.png","keywords":["file","pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/","url":"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/","name":"Add Vertical Line to Excel Chart","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/07\/graphical-user-interface-text-application-descr-1.png","datePublished":"2022-07-05T10:54:17+00:00","dateModified":"2024-03-26T10:29:18+00:00","description":"Learn how to add a vertical line to Excel charts with our easy-to-follow guide! Download the example file and improve your charting skills.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/#primaryimage","url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/07\/graphical-user-interface-text-application-descr-1.png","contentUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2022\/07\/graphical-user-interface-text-application-descr-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/add-vertical-line-to-excel-chart\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Add Vertical Line to Excel Chart"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."},{"@type":"Person","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2","name":"Harun Spahic","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g","caption":"Harun Spahic"},"sameAs":["http:\/\/human.bsru.ac.th\/"]}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/10472"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=10472"}],"version-history":[{"count":5,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/10472\/revisions"}],"predecessor-version":[{"id":15331,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/10472\/revisions\/15331"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=10472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=10472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=10472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}