Filter based on column Index

Hi,

I am faced with a new challenge, for which I still do not find a solution. I’m writing here, hoping you can help me with a hint.

I am reading an excel that contains 800 columns. Both the names of the columns and the total number of columns are variable from one month to another. Regardless of the name or the number of columns, I need to keep in Excel only the first 24 columns, and the last 12. I have to delete the rest. I tried various methods, but I didn’t get the desired result.

Can someone help me with an idea?

Thanks for the answers.