{
  "id": 2139386,
  "title": "Show the Unit Without Breaking the Number",
  "url": "https://urgent.news/2026/08/20/show-the-unit-without-breaking-the-number",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-20T13:00:12.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/michaelnocito/show-the-unit-without-breaking-the-number-3foo"
  },
  "original_language": "en",
  "account": "Formatting a number in a cell with a custom format allows it to display a value with a unit, such as \"21.2x\", while maintaining the underlying numerical value of \"21.1919\". This is achieved by entering the format code \"0.0 x\" in the cell via the Format Cells dialog. The formatted value displays as \"21.2x\" in the cell, but for all calculations and other functions, the cell continues to hold the precise numerical value \"21.1919\".\n\nUsing this method, one can create ratios, percentages, or compress large numbers for better readability, without losing the actual data. For instance, a ratio of 21.1919 can be displayed as \"21.2x\" using the format code \"0.0 x\". When used in a formula, this value is still recognized as the precise 21.1919, ensuring accurate calculations. Similarly, large numbers like 2,458,263 can be compressed and displayed as \"2M\" using the format code \"#,##0,, M\".\n\nIt's important to note that the format only changes the appearance of the numeric value, not its actual data. Typing units such as \"x\", \"k\", or \"hrs\" directly into a numeric cell can destroy the underlying data, causing downstream calculations to fail quietly. For example, a division by this formatted cell can result in a \"#VALUE!\" error if the cell is treated as text. Hence, any unit or text next to a number should be avoided, and the number should be formatted instead.\n\nIn cases where numbers have lost leading zeros or been otherwise corrupted, the custom format cannot correct these issues. The underlying substance must be corrected before applying the format. This method should only be used when formatting numbers for readability, not as a substitute for fixing incorrect data.",
  "summary": "This article gives you the move that lets a cell read \"21.2x\" while it still holds 21.1919 underneath: a custom number format. Press Ctrl+1 , pick Custom , type 0.0\"x\" . The display changes. The number does not. The principle is one line, and it is the whole article: format changes appearance, substance stays put. Anything you type into the cell changes substance. So any time you catch yourself…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}