Thank you!

Hi, I need to write a macro that has one row of dates. Row D. I need the macro to go down row and depending on the date I need to input a number to the cell to the right of that date.

Example.

If date < 12/22/16 insert value 0
if date >12/22/16 but < 12/31/16 insert value 1.....

and so on.

I am not sure much about code so please help me out thank you so much!