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
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
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
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.
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.
Thank you so much for your help. You are awesome!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks