added for loop to excel