Excel number format to only show decimals when necessary

后端 未结 6 1233
旧巷少年郎
旧巷少年郎 2021-01-12 00:32

How can I, without using formulas, show integers as integers, but decimals limited to a specific number of decimal places.

e.g. show: 1 as 1

6条回答
  •  猫巷女王i
    2021-01-12 00:40

    A bit late to the Thread but I have a report which was calculating percentages to 7 decimal places, but the column also contains integers.

    My conclusion was to use conditional formatting so if the Cell Contains a period/decimal point "." then to change the formatting to Number with 2 decimal places. This way if there isn't a period/decimal point then the values remain unedited.

    Click Here for Full Image

提交回复
热议问题