If and if/and statement
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”)
Comments
-
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.
""
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!
-
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.
-
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!
-
When I do it with one I get an error. In Excel it works just fine.
-
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!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!