Hi Renata and welcome to the Community!
As far as I can see, there are two cases in your example:
1) Columns are missing and need to be added
In this case, use the approach shown in this example here: Optional calculations with columns
2) Columns exist but need to be renamed
In this case, you can use the “Rename with lookup” action that renames columns according to a lookup table. In that lookup table you can collect all combinations how columns should be renamed, for instance
Old name | New name |
---|---|
Column 5 | column 4 |
Another possible case could be when column names are completely irrelevant, only their position matters. If that’s the case, let me know and will provide an example.