Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

graph data

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Graph - data series Att: Anthony

Graph - data series Att: Anthony

ResolvedVersion 2010
Edited on Thu 23 Feb 2012, 12:11

Charles has attended:
Excel VBA Intro Intermediate course

Graph - data series Att: Anthony

I am graphing data from a range of cells for 12 months. The formula for the range of cells is: =IF(I29>$A$1,"",SUM(I31:I33)) where I29 = month(1-12) and A1 = current month. For months beyond current month the graph continues to read cell as zero rather than blank therefore graghing future month (beyond current month) as zero rather than stopping plotting at current month. How do I go about ensuring that values are only graphed up to current month and does not graph future months as zero. Thanks.

RE: Graph - data series Att: Anthony

Hi Charles, many thanks for posting your query. Change your formula to this:

=IF(I29>$A$1,NA(),SUM(I31:I33))

Instead of blank cells on your data you'll end up with #N/A but you'll find they don't get plotted on your chart. Then use conditional formatting on those cells to turn any #N/A white: select your plotted data, select Conditional Formatting and then New Rule, and then the option to use a formula. You'll need something along the lines of =ISNA(D1) (where D1 is the first cell in the line of your selected data), then click the format button
and select white fonts, click OK twice.

Do let me know how you get on.

Anthony

Excel tip:

3D formulas find and replace

After you know all the components of a 3D reference, you can change them to suit by using a localised Find and replace crt+f, if need be.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.