Created each loop and inserted formula