Hi all. Trying to solve the below but not able to find a solution. Could anyone in here help figure out?
I have a table like shown in the screenshot, with months as column names.

The above example shows months from Oct-22 to Mar-23, but these months could span any periods (Jan-22 to Dec-22, or Jan-22 to May-23, etc).
I want to do some trends analysis by picking only the first and last month in the range. In this example, I want to consider just Oct-22 and Mar-23. Similarly for any range of months provided, I want to pick the first and last months. How could I do that?