#Invalid Data Type for identical formula on one sheet that works on another sheet
Hello,
I have two identical sheets to collect application data, each for a different project type. We'll call them Sheet 1 and Sheet 2. They both reference the same budget request sheet.
I have a "Budget Submitted" column on each sheet, which I want set up as a checkbox. I want the box to be checked if a project name on a sheet matches a project name in the Budget sheet.
I manually entered the following formula in the Budget Submitted column on each sheet: =IF(MATCH([Title of Proposal]@row, {Requested Budget Project Name}, 0), 1, 0).
This formula works perfectly on Sheet 1, but on Sheet 2 produces an #Invalid Data Type error. Why does it work on one sheet and not on the other?
Thanks, in advance for any help.
~Sandra Bauman
Best Answer
-
An robust alternative approach that would not require the IFERROR function is
=IF(COUNTIFS({Requested Budget Project Name}, [Title of Proposal]@row) > 0, 1)
Answers
-
The MATCH function "Returns the relative position of a value in a range (lookup table). The first position is 1." When I tested your formula, it appeared to work when the returned value was '1'. Your formula gave me a #Invalid Data Type on all other values.
Try this
=IFERROR(IF(MATCH([Title of Proposal]@row, {Requested Budget Project Name}, 0) > 0, 1, 0), 0)
-
An robust alternative approach that would not require the IFERROR function is
=IF(COUNTIFS({Requested Budget Project Name}, [Title of Proposal]@row) > 0, 1)
-
KDM, thank you for your response. Your alternative formula seems to be working. Thank you! ~Sandra
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 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!