Como o Fixer1234 escreveu no comentário, será melhor usar a fórmula VLOOKUP . Se você tiver uma tabela como a abaixo, você usará na coluna B a fórmula =VLOOKUP(A1,C:D,2,FALSE)
cost | Formula | Cost |Price
| Here | Table |
=================================
Test | | One | $1
---------------------------------
One | | Yeast | $2
---------------------------------
Two | | Apple | $3
---------------------------------
Three | | Three | $4
---------------------------------
| | Two | $5
---------------------------------
| | Tryout | $6
---------------------------------
| | Test | $7