I've provided a scaled down version of a larger spreadsheet. The issue that I describe below is that formulas that include the active sheet name in the formula get scrambled when sorting.
Looking at B10:B33, you'll see we have a fairly standard INDEX/MATCH combination that evaluates the year and the adjacent country and returns the correct value from the Value sheet.
Looking at C10:C33, you'll see we have essentially the same formula doing the same thing as column B, except for the cells being referenced on this Summary sheet don't have the Summary! in front of them, where as the column B formulas do.
Now for the issue:
If you select A8:C33 and sort on Column B, Excel scrambles the results (specifically scrambles the formulas in column B). Now undo the sort.
If you select A8:C33 and sort on Column C, Excel handles the sort without issue.
Any ideas what is going on and how to get around it without having to go manually delete the sheet reference as I did in Column C? Thanks!
-Erik
Looking at B10:B33, you'll see we have a fairly standard INDEX/MATCH combination that evaluates the year and the adjacent country and returns the correct value from the Value sheet.
Looking at C10:C33, you'll see we have essentially the same formula doing the same thing as column B, except for the cells being referenced on this Summary sheet don't have the Summary! in front of them, where as the column B formulas do.
Now for the issue:
If you select A8:C33 and sort on Column B, Excel scrambles the results (specifically scrambles the formulas in column B). Now undo the sort.
If you select A8:C33 and sort on Column C, Excel handles the sort without issue.
Any ideas what is going on and how to get around it without having to go manually delete the sheet reference as I did in Column C? Thanks!
-Erik