Thank you for this. I'm not sure where to copy and paste this function? How do I get a module? I'm fairly new to formulas in excel.