@Sunitha_Bist My idea is similar to the attached code. You can tweak it a bit as per your requirement.
merge.zip (19.9 KB)