Hi, prazad82!
It all depends on what do you mean by "merge". If it's summarizing or resuming the information, you can try with the built-in consolidation feature (Data tab, Data Tools group, Consolidate icon).
Otherwise, consider uploading a sample file (including manual examples of desired output), it'd be very useful for those who read this and might be able to help you.
Regards!