This is based on my older question (here).
I have 2 columns that list ID and parentID and a few others that list criteria, such as type, etc. I'd like to return a value (say 0) for those rows that satisfy certain criteria based on the criterial columns - call these *rows. However, I'd also like to return a value (say "blank") for those rows (and all its "children rows") whose parentID matches the ID of a *row - call these **rows.
There are 3 criteria for *rows:
1. type must be "branch," and
2. critA must be A, and
3. crit B must be 0
I've managed to use an array formula to return "blank" for **rows, but only for the first match. Here is a table illustrating what I'm trying to do and here is an attachment with formulae: Workbook1.xlsx.
ID parentID type critA critB 27 root A 1 *row 39 29 branch A 0 0 635 32 terminal A 0 33 32 branch **row 40 39 branch blank 775 22 terminal A 1 34 33 branch **row 812 40 branch blank 37 34 terminal **row 813 812 terminal blank *row 781 12 branch A 0 0 14 13 internal **row 784 781 branch blank 15 14 internal **row 782 784 branch blank 19 18 final
The last column illustrates what I'd like the formula to return. Help would be appreciated.
Bookmarks