TEXT function not working properly in other languages.

RonOliver

Board Regular
Joined
Aug 30, 2022
Messages
82
Office Version
  1. 365
Platform
  1. Windows
Hi!

I got this formula: =TEXT(4.93838382;CHOOSE($D$29;"0.0";"0.00";"0.000")), so if D29 has 1, it will choose "0.0", if 2, "0.00" and so on. My problem is this only works with decimal conventions in English. Since Spanish uses commas for decimals, the formula does not work. Any ideas to work around this? Thanks!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Not sure if this will cover all cases but give this a try:
Excel Formula:
=TEXT(4.93838382,"0"&MID(4.93838382,LEN(INT(4.93838382))+1,1)&REPT("0",D29))
or
Excel Formula:
=LET(x,4.93838382,
         TEXT(x,"0"&MID(x,LEN(INT(x))+1,1)&REPT("0",D29)))
 
Upvote 0

Forum statistics

Threads
1,216,750
Messages
6,132,500
Members
449,730
Latest member
SeanHT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top