I tried the solutions from this question but couldn't get it to work.

If C1:C5 = { 1, 1, 1, 2, 3 }

And B1 = 1

How can I return a reference to the last value of B1 (1), in this case, "C3" on Google Sheets?


This returns the row number of the last occurance:

=ArrayFormula(max(if(C1:C5=B1, Row(C1:C5))))

enter image description here

| improve this answer | |

This works, as explained in an answer to the question you refer to:


It returns $C$3 for your example.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.