So I was surprisingly getting error reports from many users for a new tool I made. Those users all have the German version of Excel installed. After a quick glance, I figured out the problem:
I used this formula as a named function to get the color of the adjacent cell (don't ask me why that's important, but things depend on the result):
=GET.CELL(63;OFFSET(INDIRECT("RC";FALSE);0;1))
Now in the German version, the "RC" remains, but would have to change to "ZS" for the formula to not throw a reference error.
It's written the way it is to reference the cell the function is in.
Is it possible to rewrite this formula in a way that does not "hard code" the "RC" so it can change depending on the localization of the user (Chinese and Czech would be relevant too)? Or is it possible to replace the named formula with a bit of VBA code that can check for the language version of the user?
If I can't adjust this bit of the tool I'll have to go with a less attractive workaround (Have multiple Y/N checks instead of assigning colors).
You can then find the user's LCID using a vba code such as
You can then us a simple if then else and connect the LCID to appropriate strings using (this). Example:
Alternatively, you can also define a string i and based on the LCID you can attach i the appropriate value based on the result and use: