Question about conditional (IF) statements

A

Alan

I have an Excel file (using 2003) that has a row of entries for
actual expenditures for each month (months in columns). I want to
calculate the cumulative expenditures, plot them when actual
expenditures are entered, and not plot them when actual expenditures
are not entered. I cannot figure out how to do this with the IF
statement or conditional formatting. Everything I try leads to a "$0"
which is then plotted. (The fields are formatted as currency, so the
"$" is there.)

If I just leave the cumulative expenditures field blank, then it
is not plotted, but I have to enter the formula for the last month
each month when I update the spreadsheet.

Is there a way to do this? Thanks, Alan
 
D

Dave Peterson

try:
=if(c16="",na(),b15+c16)

You can use format|conditional formatting to hide the #n/a's or you could put
this formula in a different column (and use it in the chart), then hide that
column.

(The only chart answer I know!)

There is a dedicated newsgroup for charting, though.
microsoft.public.excel.charting

(If you get more advanced question about charts.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top