For a given cell to only be enter-able if another cell is not blank:
Select cell B3, click on Data > Validation.
Select Custom from the Allow drop-down.
In the Formula field, enter the formula =LEN(H2)<>0
Deselect (uncheck) "Ignore blank".
Click on the Error Alert tab, make sure there is a checkmark next to "Show error alert after invalid data is entered".
Type in your Title and Error message, then click OK.