If and if/and statement

cpontiff
cpontiff ✭✭
edited 12/09/19 in Formulas and Functions

I'm trying to do an if statement for if a cell is blank to leave it blank and if not to perform an if/and statement. I did it in Excel but when I imported the file into Smartsheet it wasn’t working. So I’m trying to write it in Smartsheet. 

I did get it to work at one point but the acceptable and review responses were backwards. Now I continue to get errors when I’m trying to fix it .

i want if my ratio is below 100% and the increase is more than 5% to return “acceptable”, if not to return “review” and if the increase amount if blank to return a blank cell.

 

If(increase=“”,””,if((and(ratio<.1,increase>.5),”acceptable”,”review”)

Tags:

Comments

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    If "Increase" and "ratio" are your column names, then all you are missing is row references.

     

    =If(increase@row=“”,””,if(and(ratio@row<.1,increase@row>.5),”acceptable”,”review”)

    .

    You will also want to edit the quotes. The formula you have posted uses "Smart Quotes", you need to use the other ones ("Not Smart Quotes"??).

     

    To see the difference, enter some quotes in Microsoft Word or some similar word editing program, then enter some quotes in a text editing program such as Notepad.

     

    The "Smart Quotes" will look a little more curly and have tails. The other quotes will simply be straight up and down like the ones you see used in this comment.

     

    "yes"

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

  • Sorry, I didn’t copy over the exact formula. I just typed it out in its basic for. I am referencing rows. I just wanted to give an idea of the basic formula I was writing. 

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    No worries. Other than the 2 previously mentioned items, there was also an extra open parenthesis before the AND function.

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

  • When I do it with one I get an error. In Excel it works just fine. 

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    Can you post the exact formula? Preferably a screenshot of the formula "in action" in the sheet along with the exact error?

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!