You would have to replace the words Building and Cost Center with cell references containing the search words... or if you want to hard code the search terms enclose them in double quotes...

BUT... I think what daddylonglegs posted is what you actually need. It looks more like what you are needing... his formula also needs to be confirmed with CTRL+SHIFT+ENTER to work... (you also need to replace the words with actual column/cell references).