Helper columns vs #UNPARSEABLE error
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
Check out the Formula Handbook template!