#### Adding an intersecting line on a chart

```Hi All

Sorry if this is simple but so am I !

I have a basic X-Y line chart with about 6 values plotted
to form a wiggly line. I've added a trendline to this to
smooth it. I now wish to add a vertical line at a certain
value on the x axis, draw this up to the trendline, then
trace a horizontal line across to the Y axis. It's the
sort of thing you'd do in secondary school but can I do it
in excel ?!?!? ...no

Any help would be appreciated.
Regards
John P
```
 0
7/9/2003 8:15:39 AM
excel.charting 18370 articles. 0 followers.

2 Replies
975 Views

Similar Articles

[PageSpeed] 58

```http://www.tushar-mehta.com/excel/charts/straight_lines/index.html

Jerry

John Phillips wrote:

> Hi All
>
> Sorry if this is simple but so am I !
>
> I have a basic X-Y line chart with about 6 values plotted
> to form a wiggly line. I've added a trendline to this to
> smooth it. I now wish to add a vertical line at a certain
> value on the x axis, draw this up to the trendline, then
> trace a horizontal line across to the Y axis. It's the
> sort of thing you'd do in secondary school but can I do it
> in excel ?!?!? ...no

```
 0
post_a_reply (1395)
7/9/2003 11:41:42 AM
```John -

Use LINEST to determine the slope and intersection of the trendline (or
the higher order terms if you've used that option).  Put your X value
into a cell, use the LINEST coefficients to calculate Y in an adjacent
cell, then copy this 2-cell range, and use Paste Special from the Edit
menu to add the data to the chart as a new series (a single point
series).  Now double click on the point to format it.  On the Patterns
tab, use None for Line and Marker (unless you want to show the point),
on the X Error Bars tab, set a Minus error bar, with a Percentage of
100, and on the Y Error Bars tab, set another Minus error bar, again
with a Percentage of 100.  The error bars form the lines that go back to
the axes.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

John Phillips wrote:
> Hi All
>
> Sorry if this is simple but so am I !
>
> I have a basic X-Y line chart with about 6 values plotted
> to form a wiggly line. I've added a trendline to this to
> smooth it. I now wish to add a vertical line at a certain
> value on the x axis, draw this up to the trendline, then
> trace a horizontal line across to the Y axis. It's the
> sort of thing you'd do in secondary school but can I do it
> in excel ?!?!? ...no
>
> Any help would be appreciated.
> Regards
> John P

```
 0
jonpeltier (303)
7/9/2003 5:51:36 PM
 Reply:

Similar Artilces:

Removing spaces at start of line
Hi, Is there a way to remove spaces at the beginning of lines in a Word 2007 doc? I don't want to remove the spaces between the words, just at the beginning of each line. Thanks! Select the text. Set justification to centered and then set justification back to left. Jill wrote: > Hi, > > Is there a way to remove spaces at the beginning of lines in a Word > 2007 doc? I don't want to remove the spaces between the words, just > at the beginning of each line. > > Thanks! If you have spaces at the beginning of a line, it probably means...

Adding Blank Rows after the last Detail of the Report
Hi All, I've used this code from Dwayne: Private Sub Report_Page() Dim intNumLines As Integer Dim intLineNumber As Integer Dim intTopMargin As Integer Dim ctl As Control Dim intLineHeight As Integer intNumLines = 12 intTopMargin = Me.Section(3).Height intLineHeight = Me.Section(0).Height For Each ctl In Me.Section(0).Controls For intLineNumber = 0 To intNumLines - 1 Me.Line (ctl.Left, intTopMargin + _ (intLineNumber * intLineHeight)) - _ Step(ctl.Width, intLineHeight), , B Next Next End Sub My report needs to print blank rows (at least...

Adding hyperlinks with parameters
Hey everybody I have a batch file which needs to be run from an excel sheet with a parameter, like this: c:\1.bat myParameter But when i try to run the Hyperlink, the Excel shows an error message saying it can't open the specified file (probably because the is a space between the file and the parameter) is there any known way to run the link from the excel? On Mar 2, 12:45=A0pm, Pasha <pavel_v...@mailto.mod.gov.il> wrote: > Hey everybody > I have a batch file which needs to be run from an excel sheet with a > parameter, like this: > c:\1.bat myParameter > But when i ...

chart axis title
Heeeeeelp I have MS excel 2000. Every time I plot a chart the y-axis title is incomplete (a few letters are missing off the end). It does not let m change the title-box size via the usual route (i.e. dragging one of th corners with the mouse). If I change the font size of the title, the bo also gets smaller and half of the title is still missing. The x-axis i fine, only the y-axis is causing problems. When I open the same file up on any other computer with the same Exce version it works fine, the problem only appears on my laptop which i only 2 months old. Is there some way of changing ...

outlook vcard, ad integration user properties
my boss is trying to get hix fax# in his vcard. he is using his address from the global address list I have modified his profile in active directory users and computers: I go into AD users and computers, double click on his user, go to the telephones tab, and enter his fax #. but when I did this his fax # is still not being pulled up in his outlook vcard. Does anyone know where outlook is trying to get this field from / how i can get this field into his vcard? thx ...

Line & Double Stacked Charts
Good day. I am trying to get a Double stacked chart to show a line. I can get the line by creating a secondary Axis however the line isnt where I want it. It is at the top of the tallest bar. Is there any way to get the line down to a value I want it at. Basically I am trying to create a capacity chart with two products running on one machine by month. I need the line to be at a value that is straight accross being the maximum machine capacity. Any help would be greatly appreciated. Thanks "K" wrote: > Good day. I am trying to get a Double stacked chart to show a line...

Simple? pie chart
Hi I have data like this customer food service ---------------------------- john excellent good mary excellent excellent david fair fair diane good good jim poor fair I want to create one pie chart for food (and one for service) that hows what % of customer rated the food (service, resp.) as excellent/good/fair/poor. Seems pretty simple, but naturally it's not. Set up a table with the ratings in the firs column, and the categories across the top: Food Service poor fair good excellent In the first cell under food (G2 in thi...

ADDING A NUMBER
how do i add a number to a range of cells? I need to add 11.27 to a number of different cells each with a different number in them Put 11.27 in an empty cell, format it the same way as the numbers you want to add to, copy it, then select the numbers you want to add to and do edit>paste special and select add. -- Regards, Peo Sjoblom "Helpme" <Helpme@discussions.microsoft.com> wrote in message news:6D51344A-78E6-4377-B292-FC6C16FF6BA2@microsoft.com... > how do i add a number to a range of cells? I need to add 11.27 to a > number > of different cells e...

Output intersection of table
Hi, I have TableA of data which needs checking row by row. TableB on a different sheet contains the values which need to be output. In TableA need to check Col A and then the value in Col C and return the intersecting value from TableB into Col D (in TableA). e.g TableA: ColA ColB ColC ColD Blue Man Car Red Auto Truck TableB: Red Blue Black Car 9 5 2 Truck 7 4 3 Therefore: In Row1 in TableA the value in ColD needs to be 5. In Row2 in TableA the value in ColD needs to be 7. thanks in advance, Hamish --- Message posted from http:...

When adding attachments...
....in Outlook the following errors comes up: "Out of memory or system resources, please close some programs and try again" Quotas are fine. I have deinstalled/reinstalled Office, cleaned 'temp' areas, and many other tidbits. Any other ideas? Thanks. This might help as i had this problem with Outlook 98. Is the file you are trying to copy to attach nested in sub folders? if so try and copy the attachment to a root drive like c:\ Ignore previous email. wrong spellin if the attachment is nested in sub folders(this means you have to open different folders to get to ...

Area chart Disappears
Hi, i've a created graph with a combination of Line Chart & Area Chart. Everything is fine, but when I post it in my company's intranet server and somebody tries to open it, the Area Chart simply disappears and they only see the Line chart in that graph!! I tried to open from several different computers but still the same. As I mentioned, if I open it from my computer it works fine. HELP ! If you are using a PDF program to post the charts, check to make sur your title bars aren't even close to the chart area. There has to b space between them. Hope this helps -- T...

adding new records
I am totally new to CRM, so I hope this is really easy question: This concerns permissions.. I have a "sales" group, and with one of those people i need to be able to let them add new records on behalf of other "sales" people. Is there like a standard permission setting for it? (obviously every "sales" person can add new records if they select them selfs as the owner) thanks, Michal. Hi, By default the person who creates the record will be the owner. After record creation the person could reassign the record (manually) to another user. If all rec...

print 2 or 4 charts per page in excel 2000
Hi, I have created a number of one page charts, each of which are located as seperate sheets in one excel workbook. I would now like to print 2 or 4 charts per page. However, I am unable to do so. Do you know of automated way which would allow this to be done. Your help would be appreciated. Regards, Ashish Ashish - The easiest way to do this would be to embed your charts in one or more worksheets: right click on the chart, choose Location, then pick As Object and select a sheet from the list. Then size and position them so two or four charts fit into a printed page of the workshee...

Picture Disappears When Added To Contact In Outlook 2003
Can someone help please. When I try to attach a picture to a contact in outlook 2003 immediately I double click the picture to be attached it disappears out of the outlook contact along with the placement holder in the form. Only when I right click the mouse and go remove picture do I get the placement holder back. I have looked at all the help menus but they offer no clues. Thanks TS ...

Adding ActiveX to dialog with wrapper
When I add an ActiveX object to a dialog using the dialog editor - right click - insert activeX object, the help on the resulting activex selection tool states that a wrapper will not be added by using this method. If you need a wrapper, it suggests using the class view. This is using Visual Studio 2005. I'm having some problems with this on an existing project. To make sure I understand the process, I created a new MFC project, added a dialog, created a class for that dialog and added a Flexgrid object using the right click method in the dialog. I then added a variable for the flexgrid...

Adding alternate columns
I work on a schedule where I record ticket count and ticket sales for each show, listed chronologically. Column A = week ending date Column B = # Tickets sold for April 5 show Column C = Ticket Revenue for April 5 show Column D = # Tickets sold for April 9 show Column E = Ticket Revenue for April 9 show Column F = # Tickets sold for April 12 show Column G = Ticket Revenue for April 12 show Column H = Total # Tickets sold for all shows Column I = Total Ticket Revenue for all shows In the Totals columns, the Total Tickets formula is "+B4+D4+F4", and the Total Revenue f...

Adding fields from a different query
I have a form built based on a main query. How do I add more fields on that form that come from a different query? Anne A couple possibilities... Change your first query to include the extra fields. Use your second query to "feed" a form, then embed that form as a subform on your main form. Good luck! Regards Jeff Boyce Microsoft Access MVP -- Disclaimer: This author may have received products and services mentioned in this post. Mention and/or description of a product or service herein does not constitute endorsement thereof. Any code or pseudoco...

Conditional Colors for Charts #2
Hello, I have on a sheet with several graphs and I would like to execute the procedure below automatically. In advance thank you for the assistance Yves Sub ColorColumns() Dim vntValues As Variant Dim intSeries As Integer Dim intPoint As Integer With ActiveChart For intSeries = 1 To .SeriesCollection.Count With .SeriesCollection(intSeries) vntValues = .Values For intPoint = 1 To .Points.Count If vntValues(intPoint) < 60 Then ..Points(intPoint).Interior.Color = vbRed ElseIf vntValues(intPoint) >= 60 And vntValues(intPoint) < 80 Then ..Points(intPoint).Interior.Color = vbYellow E...

Adding more than three Conditions to 'Conditional Formatting'
Can i add more than three conditions to the conditional formatting presets using code? Regards [Riz] -- Rizitsu ------------------------------------------------------------------------ Rizitsu's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=15840 View this thread: http://www.excelforum.com/showthread.php?threadid=320382 Riz, as you have found out, only 3 conditions with conditional formatting. But yes you can use some code to get more than 3, try this it will change the cell color in column A when you put in one ,two, three, or four, right click on the she...

Delimiter for adding Appointment in Entourage
Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Processor: Power PC Email Client: Exchange What's the delimiter that Entourage uses if I want to add an appointment and the subject needs to be parsed by the Exchange server? <br><br>In Outlook, the hash/pound key (#) is used as delimiter. How about in Entourage 2008? <br><br>Basically, if I add an entry in a group calendar Out-Of-Office with the subject: #User1# On-Leave <br><br>in Outlook, this entry appears in the group calendar Out-Of-Office and also in User1's personal calendar. <...

find duplicated lines in excel sheet
I have an excel sheet with text column. I wish to find and remove some duplicated lines. How can I do it? If I can do it with Excel? I've tried google for this task and found freeware tool for finding duplicated - http://www.aks-labs.com/support/phpBB2/viewtopic.php?t=69 it was good for my task, but if I can do something better with Excel? Thank you! You could use conditional formatting for the column with duplicates. http://www.contextures.com/xlCondFormat03.html#DupColumn Alan" <allangrlind@yahoo.com> wrote in message news:1122245733.329829.213230@g43g2000cwa.googlegr...

Merging line of credit accounts
Is it possible to merge two separately named line of credit (LOC) accounts. They are actually the same account. I have merged two bills accounts by renaming one of them to match the other; but when I try this approach on the LOC accounts, Money 2004 tells me the second name is already in use, try a different name. I'm not sure, but you may try (AFTER backing up!) exporting the non-surviving account to QIF, then importing it and telling Money to import to the surviving account. After doing so and confirming that the transactions are all now in the intended account, delete the non...

Technical Indicator below Stock Chart
Hello, I am trying to create a stock chart including a technical indicator or spoken more generally, I have two time series and I would like to graph one line below the other line. (I do not want to have two y-axis!) Basically I would like to have two charts below each other like you can see it on any stock chart including an indicator on various websites. Does anyone have an idea how I can handle that? Cheers Andreas Vester Andreas - If you want two stock charts (HLC), you need to put the second onto secondary axes, or fake the hi-lo lines with error bars. If it's just adding a re...

Downloaded payees automatically added to payee list
Please tell me that in Money 2006, Microsoft has finally fixed the bug where the payees in my downloaded transactions are automatically added to my payee list (this despite the fact that I've checked off the option "Confirm new payees"). This alone would be worth the upgrade. On the subject of 2006, does anyone know if Microsoft added the cookie jar concept to accounts? The cookie jar allows you to squirrel money away within an account. TIA greg.block@gmail.com wrote: >Please tell me that in Money 2006, Microsoft has finally fixed the bug >where the payees in my downlo...

how to draw flowing chart in Excel
How do I draw flow chart in Excel? I am drawing programming flow chart. Do I have any tools or templates available? Thank you. Open the Drawing toolbar (View>Toolbars>Drawing) On the Drawing toolbar, select AutoShapes>Flowchart Click on a shape to activate it Point to the worksheet, and drag diagonally, to draw the shape. agy wrote: > How do I draw flow chart in Excel? > I am drawing programming flow chart. > Do I have any tools or templates available? > Thank you. > > -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html...