Number.ToText problem

didijaba

Well-known Member
Joined
Nov 26, 2006
Messages
511
HI,
Please help if you know how to solve this tiny problem. I have column with numbers (exampe 1.2356, 1.5625, 2, 5, ...). What I need is Power Query formula to turn those into text in format 1.2, 1.6, 2.0, 5.0 .
I used this
Code:
=Number.ToText(Number.Round([NumberColumn],1),"G","")

but it returns 5 and not 5.0
Thanks
 
Last edited:

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Maybe with a formula

=TEXT(A1,"#0.0")


Excel 2016 (Windows) 32 bit
AB
11.23561.2
21.56251.6
322.0
455.0
Sheet6
 
Upvote 0
For a Power Query solution: replace argument "G" with "F1".
Great advice, thanks very much. I haven't found anything like that anywhere on the internet. Is there any source you can point me to for such great tips? Thanks again :)
 
Upvote 0
Thanks, i have read "M is for (Data) Monkey", and went through Power Query Formula reference but I didn't see anything similar to your formula. I guess some things you just need to learn from the best ;). Thanks again @MarcelBeug
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,384
Members
449,080
Latest member
Armadillos

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