If you are looking for solution without code than this might help

Sample.xlsx