Please attach a workbook with some example data. We don't know what ms1, ms2, ect are holding as values.
Forum Rules