Hi, I am trying to automate one thing using VBA. So, I want to place 1s based on the provided starting point and end point. So for example, on 1st row I have times cell C1 to so on.( 8am, 9am, 10am,......23pm) and now if I put start time 10AM in A2 and end time in different cell 9PM in B2. Then I want to place 1s in C2 to So one based on the references from 1st row and based on my starting and end point. Thanks for the help in advance.