What is wrong with my IF formula
=IF([Transportation Type]@row ="Rental Car", "CWT Code Required”, IF([Transportation Type]@row=”Air”, "CWT Code Required" ,IF([Transportation Type]@row=”Train”, "CWT Code Required")))
Best Answers
-
Could you post a screen capture of the error, or outline what error you are receiving?
Just based on the text above, it looks like some of your quotation marks are straight, like this ", and some are curved, like this ”.
Smartsheet formulas would need all " marks to be the straight ones, like when you type into a cell in Smartsheet. Sometimes if you're copy/pasting formulas from other programs (such as a Mac Notepad) the characters used for quotation marks are actually seen as a different type of symbol and can cause an error.
Try replacing all your quotes with ones that were typed directly into Smartsheet!
Hope that helps,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
I tested the code I pasted above, and it worked out flawlessly on my own Test Smartsheet.
Geneviere is correct, I didn't notice you use curly brackets. I rewrote the code from scratch. Did you copy the code I pasted or did you just add the last part?
A tip for the future: don't type your formulas in Microsoft Word
Dr. St Nicholas Burrus DHA, PMP
I build Smartsheets for the US Government, State Government, and about a dozen of the US Fortune 100s.
Answers
-
YOu are missing a closing statement.
=IF([Transportation Type]@row ="Rental Car", "CWT Code Required”, IF([Transportation Type]@row=”Air”, "CWT Code Required", IF([Transportation Type]@row=”Train”, "CWT Code Required", "Closing")))
Dr. St Nicholas Burrus DHA, PMP
I build Smartsheets for the US Government, State Government, and about a dozen of the US Fortune 100s.
-
Still gives me an error....
-
Could you post a screen capture of the error, or outline what error you are receiving?
Just based on the text above, it looks like some of your quotation marks are straight, like this ", and some are curved, like this ”.
Smartsheet formulas would need all " marks to be the straight ones, like when you type into a cell in Smartsheet. Sometimes if you're copy/pasting formulas from other programs (such as a Mac Notepad) the characters used for quotation marks are actually seen as a different type of symbol and can cause an error.
Try replacing all your quotes with ones that were typed directly into Smartsheet!
Hope that helps,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
-
I tested the code I pasted above, and it worked out flawlessly on my own Test Smartsheet.
Geneviere is correct, I didn't notice you use curly brackets. I rewrote the code from scratch. Did you copy the code I pasted or did you just add the last part?
A tip for the future: don't type your formulas in Microsoft Word
Dr. St Nicholas Burrus DHA, PMP
I build Smartsheets for the US Government, State Government, and about a dozen of the US Fortune 100s.
-
I re-typed the quotes and it worked. Thanks all!
-
Glad you could get it working! 🙂
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!