For one ID, there are several occurrences as shown in column Count. Each occurrence has its own value and status.
I want to create column that will return last occurrence's status for all occurrences in one ID.
For example, ID "456" has 4 occurrences. On the last one, occurrence 4 (row 9), the Status is "not ok". So on the Result column, every occurrence for ID "456" will show "not ok" (row 4, 7, 8, 9)
You could try using the LOOKUP()
function, as it seems it would be suffice here:
=LOOKUP(2,1/(B2=$B$2:$B$10),$E$2:$E$10)