Solved

How to add marker to a chart.

Posted on 2014-04-18
12
296 Views
Last Modified: 2014-04-20
In a cell, there is a chart minimized to display data for two serries. Please see the attached image. They display data for 13 months.

The current month value stored in a named-range (CurrMthCol).

Is it possible to have a red line to show the location of the current month. The value of the current month will change and it is expected the location of the marker to shift as well per the value in CurrMthCol.

Thank you.
April.png
0
Comment
Question by:Mike Eghtebas
  • 7
  • 5
12 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 40009142
Can you upload a sample file?
0
 
LVL 33

Author Comment

by:Mike Eghtebas
ID: 40009235
Here the sample file:

For the chart, see Sheet1!J4
For its data. see: Lookup!L3:L26

CurrMth value, see Lookup!B10

Thank you,

Mike

But, I am not able to attach it (it is not EE rather the place I work is blocking it). I wander it you could use these sample files to create a sampe chart instead.
3.45	3.71	3.8	3.4	3.48	3.7	3.42	3.58	3.39	3	3.67	3.71	3.51

Open in new window


it goes from 1 to 13
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 40009370
Can you email it to me? My address is on my profile.
0
 
LVL 33

Author Comment

by:Mike Eghtebas
ID: 40009509
Done.

Thanks
0
 
LVL 33

Author Comment

by:Mike Eghtebas
ID: 40009846
Hi  Saqib,

This marker doesn't have to be somting internal to the chart. It could be a vertical line on the Sheet1 where the chart is also located.

Then, if we could read the left position of the data area inside the chart as well as the current width of the chart, then we can interpolate and find where the marker line has to be to position the line there.

Please see the attached image.

Mike
intepolation.png
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 40009980
Sorry I went to sleep. Here is the file uploaded while I am attempting it.
SampleChart.xlsm
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 40010019
Here is one way by adding a new series and making it a column chart and reducing the width to 0
SampleChart.xlsm
0
 
LVL 33

Author Comment

by:Mike Eghtebas
ID: 40010986
Hi  Saqib,

WOW, this is amazing. Thank you for the wonderful solution.

Question: Upon selecting a value from Current Month: dropbox, how do you enter 10 for in the new series?

I cannot find any event to see the related VBA.


Mike
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 40010988
No VBA. It is an excel formula. See L2 on formula sheet.
0
 
LVL 33

Author Comment

by:Mike Eghtebas
ID: 40010995
Yes, somehow value 10 has been entered into the selected month cell and the rest are reduced to zero. But how?

I need to transfer this good solution into my worksheet where, actually, there are 5 such a graphs each already with two series like (here showing few columns for illustration):

Series1: 3.45	3.71	  3.8	  3.4	  3.48 ....
Series2: 2        1       2       3        1    ....
Series3: 0        10      0       0        0   ....       <-- marker series

Open in new window


Here 10 has been entered by the drop box into Feb column. But how?

I will simply add Series3 to all data sources so that the marker line will show in all of the charts.

But I need to learn how to reset series3 to zero except to the selected month which becomes 10.

Thank you,

Mike
0
 
LVL 33

Author Closing Comment

by:Mike Eghtebas
ID: 40011010
Thank you very much.

Mike
0
 
LVL 33

Author Comment

by:Mike Eghtebas
ID: 40011321
I have a follow up question at:

http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/Excel/Q_28416322.html

If you had time to take a look at it.

Thank you,

Mike
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now