How to use the result of a formula as a reference?

Maybe this will help: