web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Excel numbers convert ...
Power Apps
Answered

Excel numbers convert to different values if different browser language setting

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have an app that reads (only) some data from an excel file stored in a sharepoint site and one of the columns is a decimal number.

 

I've noticed that excel brings all the data as Text, and the problem is that when I try and convert the text to number using the Value() function it would give me a different result if the browser of the user is set up to English or Portuguese.

 

I've figured this behavior might be due to the different decimal separator used in each language. English uses "." (dot) and Portuguese uses "," (comma).But I can't figure how to solve it.

 

Has anyone dealt with this?

 

Note: I would not like to migrate this data in specific to a sharepoint list, I have some reasons to keep it in excel.

Categories:
I have the same question (0)
  • Verified answer
    victorcp Profile Picture
    2,350 Moderator on at

    Hi,

    It happens because of the regional settings of the browser, if it is portuguese the decimal separator is comma if it is english the decimal separator is dot.

     

    So if your data is in portuguese you can pass it as a parameter, like this:

    Value("0,12", "pt-BR")

    and it will understand that this number is in brazilian portuguese.

     

    Any doubts let me know

  • dhhenrique Profile Picture
    on at

    That worked, thanks. I had never really seen that optional second parameter.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard