The easiest way to this is to add a number column via
=COUNTIFS(B$1:B2,"="&B2)
Then just combine the B column with the value from this new column
This is easier than trying to find the last value before this one, but gives the same result.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…