With an array formula you may get what you are after. One value for each referenced cell, in a new array.
However, I suspect that you need only one column returned. Use only column B in the first argument. Also, if you don't give the third argument, logical FALSE value is returned instead.
Code: Select all
=IF(B29:B45="MIDAMERICA";C29:C45;"---")
Entered with ctrl+shift+enter, this will fill 17 cells down, one for each cell in the range you are testing.
If you only want one single value returned, you may need the VLOOKUP() function instead of an array-IF()