This file has it working right for Xbar and Rbar and I have the setup in the sheet how I am trying to do it. Problem is for the UCL and LCL for both X and R it is counting those empty columns due to their headers. Is there a way to have it ignore that?