I have an Excel sheet with quite a few different if statements and other functions running in VBA. I\'ve been going around in circles trying to solve the following problem :