you could do a couple of ways
in row 6
=IF(MOD(D6,5)=0,"bingo","")
and
=IF(MOD(H6,7)=0,"bingo","")
A spreadsheet attached would help here ,
What version of excel are you using -show version as solutions will be dependant on what version you have and therefore what functions available