Editing multiple cells at once in table

Hi all!

I have a table that consists of 1 row and 24 columns which represent the 24 hours in a day. Each of the cells contains a number from 1 to 4. I got the script working with the SQL UPDATE statement working for 1 cell but cannot edit multiple cells at a time. Is it possible at all?

For example if I select 4 cells and the press number 3 on the keyboard I want all the 4 cells to be populated. Thanks in advance