Thanks for the screenshot but still I am puzzled about what is your actual requirement

Can you please attach a sample workbook with expected result?