Dear Fred,
Welcome to ExcelDemy Forum! Thank you for your post. I understand your existing formula returns an incorrect output with the changing shifts, for instance in cell L8. Today, I will provide a modified formula that will meet your existing criteria and fix the issues given in your Excel...