ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   How do I retain blank cell status in an IF statement? (https://www.excelbanter.com/charts-charting-excel/29320-how-do-i-retain-blank-cell-status-if-statement.html)

HWI

How do I retain blank cell status in an IF statement?
 
I have a monthly multiline graph to which I add data by day. The graph lines
terminate at the first empty cell (day) in the series, which is what I want.
However, If I use an IF statement to prime the cells dynamically the graph
lines drop to zero. I have not been able to achieve the desired result using
"", #NA or NA().

Jerry W. Lewis

No worksheet cell that contains a formula can be truly blank. You have
already rejected the two closest approximations (#N/A and NA() are
equivalent).

The remaining options are

- delete the formulas in cells beyond actual data (you could use an
event driven macro to restore the formulas as data is added)

- Do something along the lines of
http://www.peltiertech.com/Excel/Charts/Dynamics.html
http://www.tushar-mehta.com/excel/ne...rts/index.html

Jerry

HWI wrote:

I have a monthly multiline graph to which I add data by day. The graph lines
terminate at the first empty cell (day) in the series, which is what I want.
However, If I use an IF statement to prime the cells dynamically the graph
lines drop to zero. I have not been able to achieve the desired result using
"", #NA or NA().



HWI

Thanks Jerry - the second site listed appears to be on the track I'm wanting.
Will try it!

"Jerry W. Lewis" wrote:

No worksheet cell that contains a formula can be truly blank. You have
already rejected the two closest approximations (#N/A and NA() are
equivalent).

The remaining options are

- delete the formulas in cells beyond actual data (you could use an
event driven macro to restore the formulas as data is added)

- Do something along the lines of
http://www.peltiertech.com/Excel/Charts/Dynamics.html
http://www.tushar-mehta.com/excel/ne...rts/index.html

Jerry

HWI wrote:

I have a monthly multiline graph to which I add data by day. The graph lines
terminate at the first empty cell (day) in the series, which is what I want.
However, If I use an IF statement to prime the cells dynamically the graph
lines drop to zero. I have not been able to achieve the desired result using
"", #NA or NA().





All times are GMT +1. The time now is 02:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com