ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   setting a formula = to no point in a graph (https://www.excelbanter.com/excel-discussion-misc-queries/207249-setting-formula-%3D-no-point-graph.html)

jxbeeman

setting a formula = to no point in a graph
 
Hello,
I'm trying to get a formulat to register as no point in a graph. Any Ideas?
I've tried setting the formulat to "" or 0 with no luck. What i'm looking
for is the formula to output a result say either a 1 or "". If this formula
is then graphed the values of 1 will show up (say for a line graph) but the
spots where the formula resulted in a "" gives a 0 which makes the line go to
0. The issues is that i'm graphing a coupld different series so the points
kinda overlap.
Any Ideas would be great!
Thanks,
Josh

Peo Sjoblom[_2_]

setting a formula = to no point in a graph
 
use NA()

=IF(A1="x",1,NA())


so instead of using 0 or "" use the NA() function

if it looks ugly use conditional formatting and white fonts




--


Regards,


Peo Sjoblom

"jxbeeman" wrote in message
...
Hello,
I'm trying to get a formulat to register as no point in a graph. Any
Ideas?
I've tried setting the formulat to "" or 0 with no luck. What i'm looking
for is the formula to output a result say either a 1 or "". If this
formula
is then graphed the values of 1 will show up (say for a line graph) but
the
spots where the formula resulted in a "" gives a 0 which makes the line go
to
0. The issues is that i'm graphing a coupld different series so the
points
kinda overlap.
Any Ideas would be great!
Thanks,
Josh




jxbeeman

setting a formula = to no point in a graph
 
Thanks Peo Sjoblom, that was exactly what i was looking for.
another question though???
How would you do the same thing for the X axis? so say you wanted a graph
to resize on only the values that a fromula calculates and leave out certain
values. I tried the NA() but it gives #NA for the values on the X axis
instead of "".

Thanks again,
Josh

"Peo Sjoblom" wrote:

use NA()

=IF(A1="x",1,NA())


so instead of using 0 or "" use the NA() function

if it looks ugly use conditional formatting and white fonts




--


Regards,


Peo Sjoblom

"jxbeeman" wrote in message
...
Hello,
I'm trying to get a formulat to register as no point in a graph. Any
Ideas?
I've tried setting the formulat to "" or 0 with no luck. What i'm looking
for is the formula to output a result say either a 1 or "". If this
formula
is then graphed the values of 1 will show up (say for a line graph) but
the
spots where the formula resulted in a "" gives a 0 which makes the line go
to
0. The issues is that i'm graphing a coupld different series so the
points
kinda overlap.
Any Ideas would be great!
Thanks,
Josh





Barb Reinhardt

setting a formula = to no point in a graph
 
I'm guessing you have a line chart. Try changing it to an XY Scatter to see
what happens.
--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"jxbeeman" wrote:

Thanks Peo Sjoblom, that was exactly what i was looking for.
another question though???
How would you do the same thing for the X axis? so say you wanted a graph
to resize on only the values that a fromula calculates and leave out certain
values. I tried the NA() but it gives #NA for the values on the X axis
instead of "".

Thanks again,
Josh

"Peo Sjoblom" wrote:

use NA()

=IF(A1="x",1,NA())


so instead of using 0 or "" use the NA() function

if it looks ugly use conditional formatting and white fonts




--


Regards,


Peo Sjoblom

"jxbeeman" wrote in message
...
Hello,
I'm trying to get a formulat to register as no point in a graph. Any
Ideas?
I've tried setting the formulat to "" or 0 with no luck. What i'm looking
for is the formula to output a result say either a 1 or "". If this
formula
is then graphed the values of 1 will show up (say for a line graph) but
the
spots where the formula resulted in a "" gives a 0 which makes the line go
to
0. The issues is that i'm graphing a coupld different series so the
points
kinda overlap.
Any Ideas would be great!
Thanks,
Josh






All times are GMT +1. The time now is 03:25 PM.

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