设置单元格为数字但在后面添加”mg”的方法是怎样的?

huangapple go评论93阅读模式
英文:

How do I set a cell to be a number but to also have mg after?

问题

我想记录几个物品的重量,以毫克为单位,并且希望只需在单元格中键入一个数字,然后它就会显示数字后面加上“mg”。

我有一种感觉,也许可以通过自定义数字格式来实现,我尝试过,但似乎会改变数字并搞乱一切。

肯定有一种简单的方法吧?

我尝试过使用自定义数字格式。

我原本期望在单元格中输入30,然后显示为30mg。

英文:

I want to record the weight of a few items in milligrams, and I want it to be that I just type in a number in a cell and then it has the number but adds mg afterwards.

I get the feeling I may be able to do this with custom number formats and I have tried, but it seems to change the number and mess everything up.

Surely there's an easy way?

I've tried going to custom number formats.

I was expecting to type into a cell 30 and it come up as 30mg

答案1

得分: 1

你可以在菜单中使用“自定义数字格式”选项。要进入该选项,您可以点击顶部菜单栏中的“格式” -> “数字” -> “自定义数字格式”。

你要查找的示例在这里

英文:

You can use the Custom number format option in the menu. To get to it, you go to Format (in the top menu bar) -> Number -> Custom number format.

An example of what you're looking for is here.

huangapple
  • 本文由 发表于 2023年7月3日 10:59:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/76601618.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定