#Invalid Data Type Help
Hi All,
I have this simple functions:
=IF(COUNTIF(A1:D1,"apple"),"YES","NO")
The formula works fine if in the range A1:D1 I have 1 cell containing "apple".
If 2 or more cells contain "apple" the formula now returns "Invalid Data Type" error.
The same formula in excel works fine, so not sure what I'm doing wrong?
Thanks
Answers
-
OK, I think I got this one sorted as well ... guess typing the problem out helps me solve it
=IF(COUNTIF(A1:D1,"apple")>0,"YES","NO")
That is the solution
-
Hi Stefano,
Glad you got it working!
Be safe and have a fantastic week!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
✅Please help the Community by marking your post with the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!