Helper columns vs #UNPARSEABLE error

This works for me using helper columns where I do count(parent) and count(children)
=IF(OR(children18 = 0, Parent18 > 0), 1, 0)
If I substitute the count(children) its #UNPARSEABLE
=IF(OR(count(children) = 0, Parent18 > 0), 1, 0)
Best Answer
-
Ok. Here is a little tip for when you want to consolidate...
Take the formula in the column you want to remove and copy everything except for the initial =.
Then go to the formula you are building into, highlight the full cell reference, then paste.
So if your columns are [Master Formula], [Children Column], and [Parent Column]...
[Master Formula]: =IF(OR([Children Column]@row = 0, [Parent Column]@row > 0), 1, 0)
[Children Column]: =COUNT(CHILDREN())
[Parent Column]: =COUNT(PARENT())
So you are going to take the formula from [Children Column] (excluding the initial =) and drop it into the [Master Formula where it says [Children Column]@row.
=IF(OR(COUNT(CHILDREN()) = 0, [Parent Column]@row > 0), 1, 0)
And then the same for [Parent Column]@row...
=IF(OR(COUNT(CHILDREN()) = 0, COUNT(PARENT()) > 0), 1, 0)
And there is your consolidated formula...
Answers
-
What formulas are you using in the parent and children columns?
-
Children Column
=COUNT(CHILDREN())
Parent Column
=COUNT(PARENT())
-
Ok. Here is a little tip for when you want to consolidate...
Take the formula in the column you want to remove and copy everything except for the initial =.
Then go to the formula you are building into, highlight the full cell reference, then paste.
So if your columns are [Master Formula], [Children Column], and [Parent Column]...
[Master Formula]: =IF(OR([Children Column]@row = 0, [Parent Column]@row > 0), 1, 0)
[Children Column]: =COUNT(CHILDREN())
[Parent Column]: =COUNT(PARENT())
So you are going to take the formula from [Children Column] (excluding the initial =) and drop it into the [Master Formula where it says [Children Column]@row.
=IF(OR(COUNT(CHILDREN()) = 0, [Parent Column]@row > 0), 1, 0)
And then the same for [Parent Column]@row...
=IF(OR(COUNT(CHILDREN()) = 0, COUNT(PARENT()) > 0), 1, 0)
And there is your consolidated formula...
-
Thanks. That worked.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 462 Global Discussions
- 156 Industry Talk
- 506 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 517 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!