Invalid Data Type Error
I'm trying to have a symbol turn "yellow" if the number of check boxes in a selected is even (and >0), or "red" if uneven. To do this I made a hidden column with a formula counting how many boxes were checked:
=COUNTIFS([ColumnA]@row:[ColumnF]@row, 1
Then in the symbol column, wrote the following formula:
=IF([HiddenColumn]@row >= 1, AND(IF(ISEVEN([HiddenColumn]@row), "Red", "Green")))
But now I get an "Invalid Data Type" error message in the symbol column when any amount of boxes are checked. Help please!
Answers
-
=IF(HiddenColumn@row > 0, IF(ISEVEN(HiddenColumn@row), "EVEN", "ODD"), "")
If it's bigger than zero, test for EVEN/ODD and return EVEN or ODD. If it's not bigger than zero, then blank
-
Hi @tbelly50
I see you marked James' answer as not resolving your question. I notice you have the AND function in potentially the wrong place, if you're looking for both conditions in the first IF statement.
Try:
=IF(AND([HiddenColumn]@row >= 1, ISEVEN([HiddenColumn]@row)), "Red", "Green")
If this is still returning an error, it may be that your hidden column has an error. Check to see if your COUNTIFS is in the right type of column (text/number).
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!