+ Reply to Thread
Results 1 to 5 of 5

show empty cell if result is more than 20

  1. #1
    Registered User
    Join Date
    10-24-2009
    Location
    Mesa, AZ
    MS-Off Ver
    Excel 2007
    Posts
    3

    show empty cell if result is more than 20

    I have a percentage formula in a row of cells. I do not want it to show anything if the result of the formula is more than 20. How do I do that?
    The formula is: =((B$2-B5)/B$2)*100

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: show empty cell if result is more than 20

    one way
    =IF(((B$2-B5)/B$2)*100>20,"",((B$2-B5)/B$2)*100)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    10-24-2009
    Location
    Mesa, AZ
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: show empty cell if result is more than 20

    Thank you very much. It worked perfectly.
    Next issue.
    I am plotting the data in a line chart. Data versus calendar dates. If there is no data because the date has not occurred, the chart now drops to zero for those dates. Is there a way to plot only data that does not equal zero or plot only dates that have occurred without having to change the chart input data every time it is updated?

    Thanks for your time!!
    Last edited by fargobride; 10-24-2009 at 08:18 PM.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: show empty cell if result is more than 20

    you have to use another column and say your data is in col a and b a1 to b5
    then in c1 put
    =if(b1=0,na(),b1)
    and drag down
    then change the data series to from =Sheet1!$A$1:$b$5
    =Sheet1!$A$1:$A$5,Sheet1!$C$1:$C$5

    but if you're using the first example you gave as your data source use
    =IF(((B$2-B5)/B$2)*100>20,NA(),((B$2-B5)/B$2)*100)
    Last edited by martindwilson; 10-24-2009 at 09:28 PM.

  5. #5
    Registered User
    Join Date
    10-24-2009
    Location
    Mesa, AZ
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: show empty cell if result is more than 20

    Thank you so much for your help. You are awesome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1