简体   繁体   中英

In Excel, how do I convert a fractional number to text like “234.5” but a whole number to text like “234”?

In Excel, how do I convert a fractional number to text like "234.5" but a whole number to text like "234"? If I do =text(234, "0.0") it gives 234.0, but I want "234". If I do =text(234.5, "0") it gives 235,but I want 234.5.

如果要将数字更改为文本格式而外观没有其他更改,一种方法是:

=A1&""

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM