Ranking within hierarchy (=RANKIF)... using CHILDR
CategoryHierarchyValueRank without HelperRank 1Rank 2Rank 3Rank with HelperHelper
 Collaboration powered by Smartsheet   |   Report Abuse
1
-a
120111
2
-b
216111a
3
c
35222b
4
d
38111b
5
e
33333b
6
f
21333a
7
g
23222a
8
-h
16222
9
i
21333h
10
j
22222h
11
k
23111h
12
13
for illustration, not neededfor illustration, not neededfor illustration, not needed
14
=COUNT(ANCESTORS (Category@row)) + 1=RANKEQ(Value@row, COLLECT(Value:Value, Hierarchy:Hierarchy, Hierarchy@row, Helper:Helper, Helper@row), 0)=IF($Hierarchy@row = 1, $[Rank without Helper]@row, "")=IF($Hierarchy@row = 2, $[Rank without Helper]@row, "")=IF($Hierarchy@row = 3, $[Rank without Helper]@row, "")=RANKEQ(Value@row, COLLECT(Value:Value, Hierarchy:Hierarchy, Hierarchy@row, Helper:Helper, Helper@row), 0)=PARENT(Category@row)