I am trying to create a formula where it looks at 3 cells and returns a different value for the cell where the statement is true, but if multiple cells return true it also needs to return the last cell where that true value occurred:
=IF(OR([23-24 SY Visit Count]@row >= 1, 1, OR([22-23 SY Visit Count]@row >= 1, 2, OR([21-22 SY Visit Count]@row >= 1, 3, OR([20-21 SY Visit Count]@row >= 1, 4, OR([19-20 SY Visit Count]@row >= 1, 5))))))
keeps returning incorrect argument, so not sure why this is happening. I have some other columns that count if the previous 3 years and previous 5 years has a value.
But this formula needs to return a 1 if the 1st reference is 2 if the 2nd and 3 if it's in the 3rd. It also needs to return the last true value encountered, so if the 1st and the last have a value, then it should return the last true value.