I am trying to develop a function that will collect the maximum value in the same column for all rows above the current row. My initial formula was
=MAX(COLLECT([Sim Exp Yr]$1:[Sim Exp Yr]1, $[Email Address]$1:$[Email Address]1, $[Email Address]@row, $Certification$1:$Certification1, CONTAINS("SimLab", @cell)))
Which runs from the $1 row to the row above the formula row. So in this case, row 2, the formula runs from 1:1. When I copy to row 3 the formula runs from 1:2, etc.
The problem is that when the sheet gets sorted the 1:2 formula can end up on row 100, so it is only looking at 1:2 instead of 1:99. Taking off the specified row numbers includes the formula row in the range and results in a circular reference.
I saw answers to looking up specific values in the row above, but nothing about incorporating the 2 helper columns (autonumber and match) into a range, i.e. going from $[Email Address]$1:$[Email Address]1 to $[Email Address]$1:$[Email Address]RowHelper@row does not work.
Any advice on this?