I have VBA code to auto-sort a league table.
My code is:
The formula in the range column that dictates the sort is:
The sort works perfectly when the standard part of the formula is able to be used:
But when there is an error (this is because that particular team have not yet played a fixture so far this season), everything else sorts correctly and all teams that have not yet played and require the =IFERROR are sat at the top of the pile which is causing issues with the other stats in the league table.
Any suggestions of how I can get the IFERROR teams to be included in the auto-sort? They are displaying the correct value from the formula however, not the correct playing in the league which means other formulas are now referring to the incorrect cells.
Thanks
Bookmarks