By: Shamima Sultana

In reply to Muhammad Farg.

Hello Muhammad Farg,

Yes, there are multiple ways to merge data under same headlines. In this article we showed how to merge sheets step by step: How to Merge Sheets in Excel

You can follow this VBA code to merge the data and arrange it at the same time under one headline:
Before using the code make sure both of your sheets contains the same headings.
Sheet1 & Sheet2:

Sub combine_multiple_sheets()
Dim Row_1, Col_1, Row_last, Column_last As Long
Dim headers As Range
Set WB = ThisWorkbook
Set wX = WB.Sheets.Add
wX.Name = "Consolidated"
Set headers = Application.InputBox("Choose the Headers", Type:=8)
headers.Copy wX.Range("A1")
Row_1 = headers.Row + 1
Col_1 = headers.Column
For Each Ws In WB.Worksheets
If Ws.Name <> "Consolidated" Then
Ws.Activate
Row_last = Cells(Rows.Count, Col_1).End(xlUp).Row
Column_last = Cells(Row_1, Columns.Count).End(xlToLeft).Column
Range(Cells(Row_1, Col_1), Cells(Row_last, Column_last)).Copy wX.Range("A" & wX.Cells(Rows.Count, 1).End(xlUp).Row + 1)
End If
Next Ws
Worksheets("Consolidated").Activate
End Sub

Output:

Excel File: Merge Data in Same Headings.xlsx

Regards
ExcelDemy