Hi,

Assuming your data begins in row 2, with cell A2 active, go to Data→Data Validation in the Allow box scroll down to Custom and in the Formula box type: =MOD(A2,B2)=0

Add an appropriate error alert. Copy validation to other appropriate cells.

Regards