Good day Eli Vergara < @Eli Vergara >
As I mentioned in the comment, there are multiple ETL tools which you can use for the task. If this question was asked in SSIS then I would probably provide a solution using SSIS and if it was asked in Excel then probably I would present solution with power query and so on, but here you choose to discuss SQL Server :-)
Therefore, Let's assume that we want to do it in the SQL Server side
There are two main approaches for migrating the data from Excel to SQL Server:
(1) Export to text file first and import from the text file
(2) Directly import from Excel to SQL Server
In each approach you have several tools which you can use. Some of these allow to do some ETL work during the migration and some not. The following document present the tools for each approach and how to do it:
----------
The main complexity in your scenario is that we do not know what is the exact format of the source file. We have no idea about the amount of months for example or the amount of users in the row. This make the task complex and almost impossible for us since we cannot read mind and we have no access to your machine/files.
Let's use a staging table - a simple table with no indexes where we will import the data first
Issue!!! Your Excel sheet does not have a tabular structure! SQL Server is a tabular database so first you need to organize the data in a table like structure. The months in the Excel are presented above the values which presented in tabular structure. You need to add the month to the table part as a new column.
Step one: Import each month separately and add a column with the name of the month
The result should be simple table that looks like :
Can you so this step?
Note! you can also do it in the Excel
Please try to finish this step, and if you have any issue then we will need more information and maybe a sample of the excel file, in order to fully understand the structure of the source file. In this case, please provide sample of Excel file and your expected result in this specific sample data.
Step two: now you can use PIVOT to get the requested structure as in the question
Try to work in these steps and inform us if something is not clear or you don't succeed to apply - this mean that we will probably ask for more information