Hi @miguelalger,
Thank you for your prompt update.
If you want to make it more flexible, you can use the Power Query option. You can try using Power Query with these steps:
1- Create Power Query table
- Select all your data table > right click and choose Get Data from Table/Range > Check the option My table has headers > OK. This will open the Power Query editor.

- First step in Power Query editor, going to Add Column > Index Column > from 1

- Then select the Project code column and go to Transform > Pivot Column > set values column to Job# and advanced options as Don't aggregate.

- In the next interface, right click the Index column and click Remove. Then go to Home tab > Advanced editor > Delete all the M code in there and paste this instead:
let
Source = Excel.CurrentWorkbook(){[Name="Table20"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Project code", type text}, {"Job #", Int64.Type}}),
#"Added Index" = Table.AddIndexColumn(#"Changed Type", "Index", 1, 1, Int64.Type),
#"Pivoted Column" = Table.Pivot(#"Added Index", List.Distinct(#"Added Index"[#"Project code"]), "Project code", "Job #"),
#"Removed Columns" = Table.RemoveColumns(#"Pivoted Column",{"Index"}),
ProjectCols = Table.ColumnNames(#"Removed Columns"),
ListsNoNulls = List.Transform(ProjectCols, (c) => List.RemoveNulls(Table.Column(#"Removed Columns", c))),
#"Compacted Columns" = Table.FromColumns(ListsNoNulls, ProjectCols)
in
#"Compacted Columns"
- After pressing Done, all null cells in your table will be removed like this. The last step is selecting Close & Load to output the table

- With Power Query, it will update the table with every change in your original cells (add new rows, change data number, etc.) but you will need to go to Query > click Refresh to update, not always update on any changes automatically.

To understand more about using PowerQuery to pivot tables, you can refer to Pivot columns (Power Query) | Microsoft Support.
I hope this information is helpful. If you have any questions or need further assistance, please feel free to share them in the comments so I can continue to support you.
I look forward to your response.