Plotting Chart data Accurately

Mike Slattery

Board Regular
Joined
Dec 11, 2004
Messages
101
I have several columns of stock data including the date. All data for all dates that are not high or low for a given period have been removed.
I wish to plot this zig zag line that alternates between the last top and the next bottom on a pre existing chart that contains all of the historical date and price data.

Is there a way to get this reduced data-set with far fewer dates to plot correctly across the X-Axis?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I have several columns of stock data including the date. All data for all dates that are not high or low for a given period have been removed...

replace blanks with #N/A, so within your formula use =NA()

...Is there a way to get this reduced data-set with far fewer dates to plot correctly across the X-Axis?

yes, choose dates as X axis, and it will be charted properly as it will hold the same number of rows.
 
Upvote 0
There is a flag that is generated producing a 1 if the stock is at a top and a 2 if it is at a bottom. I need to eliminate all cell/records that have repeated values of 1 or 2's producing a zig zag of nothing but sequential records with 1,2,1,2 and never 1,1,2,1,2,2,2,1,1, etc.

Are you suggesting that instead of eliminating those records I just write over their contents with #N/A().

Thanks, for your assistance,

Michael
 
Upvote 0
...Are you suggesting that instead of eliminating those records I just write over their contents with #N/A()...

Yes.
In your formula, replace the "" with NA().
Such would allow a 'zig-zag' effect once plotted on a chart.
 
Upvote 0
Most welcome.
Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,153
Messages
6,129,172
Members
449,490
Latest member
TheSliink

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top