Google-sheets – Formula to find the cell in column C where a value in column A = a value in column E

google sheetsgoogle-sheets-arrayformulavlookup

I manually typed the info in Column D but that's how I want the answers to populateI'm trying to create a formula in a google sheet to find the value in the C column where the value in the A column is equal to the value in the E column.

E.g. Column E = 1 in Row 9-16 and Column A = 1 in row 2, therefore, show what's in Column C row 2

Column E = 2 in Row 17-24 and Column A = 2 in row 3, therefore, show what's in Column C row 3

Best Answer

EDIT

(following OP's edited question)

Please use the following in cell D2:

=ArrayFormula(IFERROR(VLOOKUP(E2:E,$A$2:$C,3,0)))

enter image description here


Original answer

Please use the following formula:

=ArrayFormula(IF(A2:A13=E2:E13,C2:C13,""))

(of course you can adjust the ranges to your liking)

If on the other hand need to show the results as in your example, use this one:

=VLOOKUP(E16,A2:C,3,0)

Functions used: