In Excel 2003: I have a line chart that uses 12 cells containing formulas as its data source. Each formula checks to see if there's data in a given column, then returns a SUBTOTAL() if so and a string ("No data yet") if not. (The columns the formulas look at contain actual expenses for a given month in the current year, so columns for months that haven't happened yet are empty). An example of the formula:
=IF(COUNTA(A7:A20000)=0, "No data yet", SUBTOTAL(9,A7:A20000))
All I need to figure out is how to keep the line chart from plotting a zero when the formula returns the string. Basically in that case I want the chart to behave as if the cell with the formula in it is completely empty. I'd be willing to change the formula to return something else than that string (an #N/A error value, etc) if it got the graph working correctly...
This has to be stupidly simple! Thanks for your help.
VBAjedi![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)
=IF(COUNTA(A7:A20000)=0, "No data yet", SUBTOTAL(9,A7:A20000))
All I need to figure out is how to keep the line chart from plotting a zero when the formula returns the string. Basically in that case I want the chart to behave as if the cell with the formula in it is completely empty. I'd be willing to change the formula to return something else than that string (an #N/A error value, etc) if it got the graph working correctly...
This has to be stupidly simple! Thanks for your help.
VBAjedi
![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)