Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default IF statement to generate nothing

I have created a table that checks the date via an if statement, and if the
date is ok, then it returns the result of a formula. If the date is not ok,
then it should return nothing.
The formula I currently have is if(dateok,formula result,"").
When I chart the results, the values are 0. I have also tried #N/A, but the
chart includes the #N/A as value labels.
I would like to know if there is anything I can put at the end of the IF
statement to get the chart to not include anything, ie the same result as if
I completely delete the formula.
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default IF statement to generate nothing

.. if(dateok,formula result,"")

Untested, but you could tinker, indicatively like this:
... if(dateok,if(ISNA(<formula),NA(),<formula),NA())
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---
"akaka" wrote:
I have created a table that checks the date via an if statement, and if the
date is ok, then it returns the result of a formula. If the date is not ok,
then it should return nothing.
The formula I currently have is if(dateok,formula result,"").
When I chart the results, the values are 0. I have also tried #N/A, but the
chart includes the #N/A as value labels.
I would like to know if there is anything I can put at the end of the IF
statement to get the chart to not include anything, ie the same result as if
I completely delete the formula.
Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default IF statement to generate nothing

Thanks Max.
The formula is working fine. It's only the false condition on the IF
statement I am trying to tinker with.
When charted, "" (or any other text) charts as 0, and NA() gives the value
lable of #N/A. I would like nothing to appear in my chart.

"Max" wrote:

.. if(dateok,formula result,"")


Untested, but you could tinker, indicatively like this:
.. if(dateok,if(ISNA(<formula),NA(),<formula),NA())
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---
"akaka" wrote:
I have created a table that checks the date via an if statement, and if the
date is ok, then it returns the result of a formula. If the date is not ok,
then it should return nothing.
The formula I currently have is if(dateok,formula result,"").
When I chart the results, the values are 0. I have also tried #N/A, but the
chart includes the #N/A as value labels.
I would like to know if there is anything I can put at the end of the IF
statement to get the chart to not include anything, ie the same result as if
I completely delete the formula.
Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default IF statement to generate nothing

You could apply a filter to the column containing your values -
custom, does not equal, #N/A, to temporarily hide those error values,
then the chart should adjust automatically.

Hope this helps.

Pete

On Dec 3, 12:09*am, akaka wrote:
Thanks Max.
The formula is working fine. It's only the false condition on the IF
statement I am trying to tinker with.
When charted, "" (or any other text) charts as 0, and NA() gives the value
lable of #N/A. I would like nothing to appear in my chart.



"Max" wrote:
.. if(dateok,formula result,"")


Untested, but you could tinker, indicatively like this:
.. if(dateok,if(ISNA(<formula),NA(),<formula),NA())
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---
"akaka" wrote:
I have created a table that checks the date via an if statement, and if the
date is ok, then it returns the result of a formula. If the date is not ok,
then it should return nothing.
The formula I currently have is if(dateok,formula result,"").
When I chart the results, the values are 0. I have also tried #N/A, but the
chart includes the #N/A as value labels.
I would like to know if there is anything I can put at the end of the IF
statement to get the chart to not include anything, ie the same result as if
I completely delete the formula.
Thanks.- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default IF statement to generate nothing

Hi,

If you have formulas you can return "" or NA but these will still be plotted
as 0 on the chart, so if you are charting a line chart there is no easy
solution.

Cheers,
Shane Devenshire

"akaka" wrote:

I have created a table that checks the date via an if statement, and if the
date is ok, then it returns the result of a formula. If the date is not ok,
then it should return nothing.
The formula I currently have is if(dateok,formula result,"").
When I chart the results, the values are 0. I have also tried #N/A, but the
chart includes the #N/A as value labels.
I would like to know if there is anything I can put at the end of the IF
statement to get the chart to not include anything, ie the same result as if
I completely delete the formula.
Thanks.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
generate different number Paul Excel Worksheet Functions 2 October 6th 08 08:39 AM
generate a trend rk0909 Excel Discussion (Misc queries) 0 June 27th 06 09:07 PM
generate a random number and use if function to generate new data Dogdoc1142 Excel Worksheet Functions 4 April 26th 06 03:44 AM
generate y value AhmtDY Excel Discussion (Misc queries) 1 October 19th 05 12:16 PM
Generate Payment Statement myty Excel Worksheet Functions 5 June 24th 05 05:52 AM


All times are GMT +1. The time now is 09:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"