I need a formula that returns the content of a cell if another cell equals yes if possible

So if Cell H1 = yes then I want it to return the Contents of D1.