#UNPARSABLE / #INCORRECT ARGUMENT
Having trouble trying to make this formula work. Perhaps it needs re writing using different syntax.
I understand that perhaps i am using too many arguments for the IF command.
I am looking to achieve the below.
- If
Column1
is not blank andColumn2
is not blank, return "Answer 1".
- If
Column1
is not blank andColumn2
is blank, return "Answer 2".
- If
Column1
is blank andColumn2
is not blank, return "Answer 3".
- If
Column1
is blank andColumn2
is blank, return "Answer 4".
=IF(AND(NOT(ISBLANK([CHASISS NO.]@row)), NOT(ISBLANK([STOCK CUSTOMER]@row))), "In Stock - Allocated", IF(AND(NOT(ISBLANK([CHASISS NO.]@row)), ISBLANK([STOCK CUSTOMER]@row)), "In Stock - Unallocated", IF(AND(ISBLANK([CHASISS NO.]@row, NOT(ISBLANK([STOCK CUSTOMER]@row))), "On Order - Allocated", IF(AND(ISBLANK([CHASISS NO.]@row), ISBLANK([STOCK CUSTOMER]@row)), "On Order - Unallocated", "No Match")))))
Best Answer
-
Hi Tom, Try this: =IF(AND(NOT(ISBLANK([CHASISS NO.]@row)), NOT(ISBLANK([STOCK CUSTOMER]@row))), "In Stock - Allocated", IF(AND(NOT(ISBLANK([CHASISS NO.]@row)), ISBLANK([STOCK CUSTOMER]@row)), "In Stock - Unallocated", IF(AND(ISBLANK([CHASISS NO.]@row), NOT(ISBLANK([STOCK CUSTOMER]@row))), "On Order - Allocated", IF(AND(ISBLANK([CHASISS NO.]@row), ISBLANK([STOCK CUSTOMER]@row)), "On Order - Unallocated", "No Match"))))
Answers
-
Hi @Tom Stock! Have you tried using the AI Tool "Generate Formulas"? It's my go to when I'm stuck and has been a life saver. You should be able to copy and paste the description of what you are trying to achieve in the formula description.
Michelle Cullen
-
Hi Tom, Try this: =IF(AND(NOT(ISBLANK([CHASISS NO.]@row)), NOT(ISBLANK([STOCK CUSTOMER]@row))), "In Stock - Allocated", IF(AND(NOT(ISBLANK([CHASISS NO.]@row)), ISBLANK([STOCK CUSTOMER]@row)), "In Stock - Unallocated", IF(AND(ISBLANK([CHASISS NO.]@row), NOT(ISBLANK([STOCK CUSTOMER]@row))), "On Order - Allocated", IF(AND(ISBLANK([CHASISS NO.]@row), ISBLANK([STOCK CUSTOMER]@row)), "On Order - Unallocated", "No Match"))))
-
Hi Michelle,
Thanks for the reply. I tried AI a couple of times but still didn't help.
-
Hi Adam,
Thanks for this. This sorted my issue!
Assuming i was just missing some information?
-
You just had a misplaced ) in yours. Glad it worked!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!