Does anyone know how I can have a cell require an entry based on another cell having a value

Ex. if cell A1 is not blank cell B1 would require the entry of a Y or N.