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
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!