This is a known bug since the most recent Excel update (the one that brought GROUPBY and PIVOTBY off the experimental branch). It's been reported across the internet so hopefully Microsoft is aware and will fix