I have an annual leave spreadsheet that I need to add up the LSL provisions. I have totals table that has the department which I would like to have a sumif style function so the formula looks at the dept in Q729 then adds up all the figures that relate to that Dept in the above table where the (dept is in column B) and returns all the corresponding figures in column R.