Please attach a sample workbook for better understanding.