Home » excel » Excel use a function based on user language

Excel use a function based on user language

Posted by: admin May 14, 2020 Leave a comment

Questions:

I’m trying to generate a report in Excel but the thing is that my user base are English and French Canadian…

Because of the law in Quebec, the sofware is supposed to be french, but the other user in Canada can have it in English.

  • Issue is, I don’t know which language settings will have the user enabled
  • I wanted to use some of formula like CONCATENATE, but in the french version the function name is translated to CONCATENER

Thus, I can’t use the formula, I would need to know the user lang settings in excel and find a way to use the appropriate function accordingly…

Does anybody know a way to bypass the function name regardless of the user language ?

I got another way of outputing the correct information without using the formula, but it would required more effort for the little return it would give…

Thanks in advance!

How to&Answers:

Short answer:

  • Don’t worry about it, it will work. Just use the functions as normal

Longer answer:

If you use an inbuilt function (which CONCATENATE is), it will automatically be converted to the user’s installed and enabled language settings.


As an example, if I open this workbook with English settings enabled:

enter image description here


The function is the English standard =ISNUMBER

Meanwhile, if I were to open this, with Czech language on:

enter image description here

Also note, how not only the function name changed, but also the Cell value to local settings

Alternatively, if you wanted to play it ultra-safe, you could code your own versions of the functions in creating both English and French versions – but in my humble opinion, that’s a total waste of time!


Also obviously this being only specific to CONCATENATE, you can use the ampersand & symbol instead to concatenate two values instead, which is global and will stay the same in any language settings.

= "Cell A2 has value " & A2

Answer:

Is CONCATENATE() the only function? Because in that case, you might use the & operator:

=A1&B1