Solved

Draw horizontal line in a line chart with a single cell value

Posted on 2011-02-25
3
448 Views
Last Modified: 2012-06-21
Hi,

I would like to use a line chart to create a horizontal line from the same cell value. The only way I can figure out how to do this is to place the same value in many rows and select them as the line charts series. It works but it's cumbersome and I don't like the idea of a whole column dedicated to a redundant value that is in another cell.

Is there a way to tell a line chart to use a single value for x series?

Thanks
0
Comment
Question by:waffe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 250 total points
ID: 34985591
Hello,

You only need data in the first and last data point for the line, then set the series to connect empty data points with a line.


Or you could use a XY chart on the secondary axis. See attached for both versions.

cheers, teylyn


Book7.xlsx
0
 
LVL 50
ID: 34985593
If you use a XY Scatter chart instead of a line chart, you could also use a single data point with horizontal error bars to draw the line.

0
 

Author Closing Comment

by:waffe
ID: 34987971
The concept of two graphs one on top of the other works very well. I could not get the graphs to read the series with only two values one at the beginning and one at the end even though you have it in the example you uploaded I could never get it to work. So I just have the complete column full of the the same value - sloppy but it works.

Thanks!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question