:bulb: This post covers how to display one cell as an integer and another cell with 2 decimal places in Excel.

[01] By Default, Integers and Decimals Share the Same Decimal Setting

  • The extracted data contains both integers and decimals.

01

  • Format → Cell Format → Category (Number) → Decimal places (change to 2)

02

  • With this approach, the format applies to every cell, so even integers display as 21.00.

03

  • We need a way to keep integer values displayed without decimals while showing real numbers up to 2 decimal places.

[02] Conditional Formatting + MOD Function

  • Select all target cells → Conditional Formatting → New Rule

04

  • Use a formula to determine which cells to format
  • Formula: mod(A1,1)<>0 → choose format

05

  • Format: Number → Decimal places 2 → confirm all dialogs

06

  • Result

07

  • If the alignment between integers and decimals is distracting, format the integers as Number as well.

09

  • Result

10