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.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!