current formula
=AVERAGE(Z39:AG39)
this is because column Z starts with "P1 2024" and column AG has "p8 2024"
this will eventually go to column AK to "P12 2024"
is there a way to make this formula dynamic where it always look for P1 XXXX (XXXX being the current year) then ends in the last non-blank column
so the formula is not only dyanmic in picking up the last non-blank column, but also dynamic in terms of the year (ie when it becomes 2025, I dont need to adjust the starting point of the formula to point to the column with "P1 2025")
=AVERAGE(Z39:AG39)
this is because column Z starts with "P1 2024" and column AG has "p8 2024"
this will eventually go to column AK to "P12 2024"
is there a way to make this formula dynamic where it always look for P1 XXXX (XXXX being the current year) then ends in the last non-blank column
so the formula is not only dyanmic in picking up the last non-blank column, but also dynamic in terms of the year (ie when it becomes 2025, I dont need to adjust the starting point of the formula to point to the column with "P1 2025")