salgunaidi, welcome to Excel Fox

What you asked can be done. However, to know exactly what needs to be done, it would be best that you share a sample workbook, and clearly and concisely define what should be the expected output based on different actions.