https://exceljetnew.pages.dev/posts/max-value-with-variable-column---excel-formula/
Max Value With Variable Column Excel Formula