IF statement and "" syntax for leaving cells blank
Find bottlenecks in your Excel workbooks
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: IF statement and "" syntax for leaving cells blank

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I want to use an 'if' statement on a list of values to then create another column of vlaues from which a graph is drawn. If the 'if' statement is not satisfied then I want to leave the cell blank. I can do this but the problem is that Excel treats the blank as a zero and plots it. The syntax I'm using is =if(a5>0,a5/2,"") - it's the "" that I probably need to replace so that the graph doesn't plot a zero although trying text also doesn't work

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    81,872
    Post Thanks / Like
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)

    Default

    On 2002-04-10 06:24, ad5184 wrote:
    I want to use an 'if' statement on a list of values to then create another column of vlaues from which a graph is drawn. If the 'if' statement is not satisfied then I want to leave the cell blank. I can do this but the problem is that Excel treats the blank as a zero and plots it. The syntax I'm using is =if(a5>0,a5/2,"") - it's the "" that I probably need to replace so that the graph doesn't plot a zero although trying text also doesn't work
    Use:


    =if(a5>0,a5/2,ISNA())

    Aladin

  3. #3
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    =IF(A5>0,A5/2,#N/A)

  4. #4
    New Member
    Join Date
    Apr 2002
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Thanks, works a treat.

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com