(Please help if you can) Line Graph to Stop when data stops

belly0fdesire

New Member
Joined
Sep 6, 2005
Messages
39
I searched and found a trick to make the data not be graphed by making it show #N/A instead of 0, however, i want the graph to grow as the data grows... in other words, I have a sheet that goes all the way up to IV21 with the code shown below and I want those values graphed, the data may stop at AE21 or at BB21... I want the graph to stop when the data stops. Using what I show below and just selecting C21:IV21 as the data range for the graph eliminates the "troughs" from the zeros, but leaves me with a lot of empty space in the graph. It looks terrible. This is hard to describe, so I hope I'm getting it across okay. Any ideas on how I can graph only up to the point where the data stops?


Code:
=IF(C18=0,NA(),((C4*'Incentive Values'!$D$2)+(C5*'Incentive Values'!$D$3)+(C6*'Incentive Values'!$D$4)+(C7*'Incentive Values'!$D$5)+(C8*'Incentive Values'!$D$6)+(C9*'Incentive Values'!$D$7)+(C10*'Incentive Values'!$D$8)+(C11*'Incentive Values'!$D$9)+(C12*'Incentive Values'!$D$10)+(C13*'Incentive Values'!$D$11)+(C14*'Incentive Values'!$D$12)+(C15*'Incentive Values'!$D$13)+(C16*'Incentive Values'!$D$14)+(C17*'Incentive Values'!$D$15)))
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
hmmm... this is what i'm trying to avoid

chart.jpg
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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