×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Set Point Line

Set Point Line

Set Point Line

(OP)
Hello Everyone,

I make a lot of scatter graphs where I compare temperatures to their setpoints using Excel.

I'm wondering if there is a way to mark the set point on the graph as an option? What I've been doing is either drawing a line or adding a set point temperature column in my data. I do not want to add a trendline.

Is there a better way to do this? I've tried Google, but not really sure the best keywords to use. I keep getting sent back to trendlines.

RE: Set Point Line

Quote:

I'm wondering if there is a way to mark the set point on the graph as an option?
Not that I know of.

Quote:

What I've been doing is either drawing a line
Prone to error

Quote:

or adding a set point temperature column in my data.
That’s what I do. Easy and reliable.

=====================================
(2B)+(2B)' ?

RE: Set Point Line

Adding a set-point column.

Except all you really need are two points.

RE: Set Point Line

(OP)
Prone to error without doubt...

Good point MJ. Just to need to make sure it spans my entire data set.



You would have thought it would be easy to do this, but apparently not.

RE: Set Point Line

You could use VBA to add a setpoint series.

Essentially it would be the same as adding a setpoint series, just bypassing the need to have a column for the data.

RE: Set Point Line

(OP)
Thanks everyone. I was hoping I was overlooking everyone something simple. Maybe the next version of Excel will allow for it.


Cheers.

RE: Set Point Line

A crude start for proof of concept.

CODE

Public Function CreateSetLine()

Setmax = ActiveChart.Axes(xlValue).MaximumScale
Setmin = ActiveChart.Axes(xlValue).MinimumScale

SetValue = CDbl(InputBox("Set Point"))

ActiveChart.SeriesCollection.NewSeries.Name = "SetPoint"

ActiveChart.Axes(xlValue).MaximumScaleIsAuto = False

With ActiveChart.SeriesCollection("SetPoint")
    .XValues = Array(Setmin, Setmax)
    .Values = Array(SetValue, SetValue)
    .ApplyDataLabels ShowSeriesName:=True
End With
End Function 

RE: Set Point Line

plot the setpoint as a series point by itself. if no setpoint value, then it will not be seen on chart.

hope this helps.
-pmover

RE: Set Point Line

(OP)
Pmover,

Are you saying just use a column or row with the setpoint value in the data set? If not, can you please explain further?

RE: Set Point Line

(OP)
Thanks Dave,

I was trying to avoid adding another column to my data, but that also works.

RE: Set Point Line

in using DRWeig's file, simply delete the setpoint values in the workbook and the setpoint line will not be displayed. if the setpoint values are to be displayed, then have the value displayed. initially, i thought the setpoint was a single point (x,y).

a suggestion is to have a cell which is a zero (0 = false) or one (1 = true). the cells with setpoints will need a formula to either display the setpoint value or nothing at all, depending upon the value with a 0 or 1.

another suggestion is to plot a series with only the min & max x-values and have the setpoint as y-values for min/max x-values. this would allow for a single line across the chart.

another suggestion is to place the chart on a chart-sheet (if not there). the switch to the developer tab and insert a check box onto the chart which is linked to the cell with a 0 or 1. while viewing the chart, selecting the check box will display the chart and vice versa. additionally, a scroll bar or spin button can be inserted/overlayed on chart to change the value of setpoint (will need to define the setpoint range (right-click the scroll bar to get the sub menu and select format control).

enough thinking for now . . .

hope this helps and good luck!
-pmover

RE: Set Point Line

(OP)
Hmmm, I never thought of the true/false idea. That might work. Easy enough to turn on and off.

Thanks.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources