Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Can IF function return an empty cell? (not "")

A chart series can truncate a couple of datapoints cleanly if you delete the
contents of the desired cells. When you use IF() and return a "" or some
other syntaxes to represent an empty cell, the chart series does not truncate
and your series line deflects to a displayed datapoint value of zero and does
not truncate the series line.
To have a chart truncate a line cleanly and not display erroneous data zero
points and their connecting lines, then we need to find out how to tell a
formula such as the IF function to return a real empty cell to the degree
that the clearcontents method does when you hit the delete key. e.g.
=IF(condition,"",something)
the "" does leave the cell *looking* blank but charts think there is
something there!
Any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Can IF function return an empty cell? (not "")

Replace the "" with NA():

=IF(condition,"",something)


=IF(condition,NA(),something)

This will display as #N/A in the formula cell. You can hide that by using
conditional formaating and setting the font color to be the same as the fill
color.

Biff

"mtnw" wrote in message
...
A chart series can truncate a couple of datapoints cleanly if you delete
the
contents of the desired cells. When you use IF() and return a "" or some
other syntaxes to represent an empty cell, the chart series does not
truncate
and your series line deflects to a displayed datapoint value of zero and
does
not truncate the series line.
To have a chart truncate a line cleanly and not display erroneous data
zero
points and their connecting lines, then we need to find out how to tell a
formula such as the IF function to return a real empty cell to the degree
that the clearcontents method does when you hit the delete key. e.g.
=IF(condition,"",something)
the "" does leave the cell *looking* blank but charts think there is
something there!
Any ideas?



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
VBA: For Count, when count changes from cell to cell LenS Excel Discussion (Misc queries) 18 January 4th 07 12:53 AM
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
how in excel, return page numbers in to cell ?(like date function selva Excel Discussion (Misc queries) 4 August 16th 06 10:26 AM
why a reference to an empty cell is not considered empty Nicoscot Excel Discussion (Misc queries) 10 March 10th 06 05:36 AM
Need Excel Function that will return # of char in preceding cell klafert Excel Worksheet Functions 2 June 19th 05 04:50 PM


All times are GMT +1. The time now is 09:46 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"