If I have some columns and I want to work out a percentage but I need an if statement based on a text response in a column how would i go about this?

so basically

if cell a2 = dave and b2 = accept then divide c2/d2*100 and I want this to run on every row in the colum so a2:a132 etc