it works perfectly now.........thank you very much .......the only part left is to save the total number of nurses in the corresponding cells .......I have attached a file in which if you click the button and enter the total number of nurses for a month it will save it automatically to another excel sheet 'input file for # of nurses' but now instead of saving in a seperate file it should save in colums that we created to the side of the sheets according to each date in a month.......help me doing it during your free time.......I have 365 sheets...... each sheet for a date....