IfError returns "incorrect argument"
Hi, I am trying to find values that exist between two Smartsheets. When it does, I should get a checkbox, and when it doesn't, I would like the checkbox to be unchecked.
If I use:
=IF(INDEX({Sheet B}, MATCH([ProjDef in ASH Custom]@row, {Sheet B}, 0)) = [ProjDef in ASH Custom]@row, 1, 0)
I get "#No Match" when a value doesn't exists between the two sheets.
And if I try:
=IFError(INDEX({Sheet B}, MATCH([ProjDef in ASH Custom]@row, {Sheet B}, 0)) = [ProjDef in ASH Custom]@row, 1, 0)
I get "#Incorrect Argument."
Can someone help point me in the right direction? Thanks!
Best Answer
-
Hi @Peggy S.
You are missing an argument from your formula. You need to include what you want the formula to return if there is an error. This part in bold means return 0 if there is an error. Which in turn means uncheck the checkbox.
=IFERROR(IF(INDEX({Sheet B}, MATCH([ProjDef in ASH Custom]@row, {Sheet B}, 0)) = [ProjDef in ASH Custom]@row, 1, 0), 0)
Answers
-
Hi @Peggy S.
You are missing an argument from your formula. You need to include what you want the formula to return if there is an error. This part in bold means return 0 if there is an error. Which in turn means uncheck the checkbox.
=IFERROR(IF(INDEX({Sheet B}, MATCH([ProjDef in ASH Custom]@row, {Sheet B}, 0)) = [ProjDef in ASH Custom]@row, 1, 0), 0)
-
I knew I was missing something. Thank you so much! It worked and got me exactly what I was looking for.
-
Glad I could help @Peggy S.
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!