Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 90280

Automatically adjust the "RC" in an English formula based on the user's install language

$
0
0

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 make the 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? Or do you have a different idea?

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).

Thanks in Advance


Viewing all articles
Browse latest Browse all 90280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>