Thank you, that works perfectly.

I now have a follow up question, is there a way I can ignore the formula when the cells are blank?

Thank you