Forum Discussion
Wynton90
Jul 29, 2021Copper Contributor
not sorting in ascending order
Hi,, I have trimmed my numbers and the sorting still wouldn't work. Sheet 3
HansVogelaar
Jul 29, 2021MVP
That's because of the formulas in column E.
E2 contains =SQRT(SUMXMY2(C2:C919,D2:D919))
E3 contains =SQRT(SUMXMY2(C3:C920,D3:D920))
...
E919 contains =SQRT(SUMXMY2(C919:C1836,D919:D1836))
So E2 will always be the largest value (it sums all data rows), and E919 will always be the smallest value (it sums only row 919).
What is the purpose of column E?
Wynton90
Jul 30, 2021Copper Contributor
It is to find the Euclidean distance between the Sales and Margin.
- HansVogelaarJul 30, 2021MVP
Shouldn't that be a single number?
- Wynton90Jul 30, 2021Copper ContributorYes indeed, thks for spotting the mistake. I got misled because the formula actually gives numbers.
- HansVogelaarJul 30, 2021MVP
So you just need the formula in E2; you can delete the rest in that column.