How can I apply an IF function for a specified range of cells?

I would like to apply an “IF” condition for a range of cells? Please help.

Could you please explain in a bit more detail what you want to do?