![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 2
|
How do you make a cell empty using an "if" statement in that same cell?
We are plotting these cells in a chart. Right now the "if" statement places a zero length string in the cell and the chart plots a zero value. We want the chart to plot nothing for this cell. The chart will plot nothing if the cell is empty. Code example =IF(A57<=NOW(),G57,"") How can I get around this issue? |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
|
Try returning #N/A instead of "" : =IF(A57<=NOW(),G57,NA()) If desired, you can cond format #N/A's white. |
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Posts: 2
|
Thanks Aladin It worked.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|