How to Prefix Text Before Numbers in Google Sheets (2026)

Learn how to display text before numbers in Google Sheets without losing numeric value. Explore CONCAT, TEXT, and custom number formats with real-world examples, tips, and pitfalls for students, professionals, and small business owners.

How To Sheets
How To Sheets Team
·5 min read
Prefix Text in Sheets - How To Sheets
Quick AnswerDefinition

Prefixing numbers with text in Google Sheets preserves the numeric value while displaying a label like ORD-123. You can prepend strings with CONCAT or the & operator, apply the TEXT function for formatted prefixes, or use a custom number format. This guide shows practical methods, best use cases, and pitfalls to avoid.

Understanding the need to prefix numbers in Google Sheets

In many datasets, you may want to display a human-friendly label before a numeric ID without turning the value into text. For example, turning 1423 into ORD-1423 helps with readability and downstream workflows. According to How To Sheets, keeping the underlying numeric value intact is essential for sorting, filtering, and calculations. This means choosing methods that preserve the number while altering only its displayed form. The best approach depends on whether your data will be used for calculations or simply displayed in reports. When you prefix numbers for display, ensure you test formulas on a copy of the sheet to avoid data drift.

Different teams prefer different prefixes (ORD, INV, No., etc.). The key is to select a method that keeps numeric integrity where it matters (calculations) and provides readable labels where it matters (reports). The phrase google sheets before number often comes up in templates and dashboards because readable IDs help stakeholders quickly identify records without altering the data’s numeric nature.

Planning your prefix strategy

Before you start inserting prefixes, map out what you want to prefix, where it will appear, and how it will affect downstream processes. Decide if the prefix should be visible in the same cell (harder to sort) or in a neighboring column (easier to keep calculations intact). Consider future data imports or exports: if you bring the sheet into another system, will the prefix survive or cause parsing issues? Write down a small set of rules (e.g., “ORD- must prefix all order numbers in column A”). This planning reduces rework and keeps your sheet consistent across teams. How To Sheets recommends starting with a sample data row to validate your chosen approach.

Method A: Prefix with CONCAT or & operator

A simple and common approach is to prepend a text prefix using the CONCAT function or the & operator. For example, if A2 contains a numeric ID, you can place in B2: ="ORD-"&A2 or =CONCAT("ORD-", A2). This keeps the original numeric value in A2 intact. The resulting B2 will display ORD-1423, while A2 remains a number. If you copy the formula down, Google Sheets will adjust references automatically. Note that the result in B2 is text, which affects numeric operations in B2 but not A2.

Pros: easy to understand, preserves original numbers in their cells. Cons: the display column becomes text, which may impact sorting in that column.

Method B: Prefix with the TEXT function for formatting

If you need more control over the numeric display (for example, adding leading zeros or combining with other formats), use TEXT. For instance, =TEXT(A2, "ORD-0000") will display ORD-0001 for A2=1. TEXT converts the number to text, but it gives precise control over formatting. This is especially useful for fixed-width IDs where you require a consistent number of digits, or when you want the prefix to appear with the exact formatting every time.

Caveat: because TEXT returns text, you cannot perform numeric calculations directly within the same cell. Use a separate column for calculations or revert to the original numeric value for those tasks.

Method C: Custom number formats for in-place display

Custom number formats let you show a prefix without changing the underlying numeric value. Select the target cells, open Format > Number > More formats > Custom number format, and enter a pattern like "ORD-"0000. With A2=123, the display shows ORD-0123, but the cell remains numeric for calculations. This approach is powerful for dashboards and reports where you want clean, consistent prefixes without sacrificing data integrity.

Tip: test a few sample values to ensure always the same digits appear, especially if your data varies in length.

Real-world templates you can reuse

Template 1 (simple prefix): ="ORD-"&A2 Template 2 (leading zeros): =TEXT(A2, "ORD-0000") Template 3 (display-only prefix via format): Select cells → Format → Number → Custom number format → ORD-0000 Template 4 (dynamic prefix from another cell): =IF(B2="Order", "ORD-"&A2, A2) These templates illustrate different needs: quick labeling, fixed-width IDs, or dynamic prefixes based on conditions. Start with the simplest and only move to more complex methods if your data needs justify it.

Tools & Materials

  • Google Sheets (any browser)(Open a sheet where you want the prefix to appear)
  • Sample numeric data(Column with plain numbers to prefix (e.g., A2:A10))
  • Experiment copy of data(If you want to test formulas without affecting originals)

Steps

Estimated time: 15-25 minutes

  1. 1

    Open your sheet and select target cells

    Open the Google Sheet containing the numbers you want to prefix. Select the target cells where the prefix will be displayed. Decide whether you’ll replace the original values or display prefixes in an adjacent column.

    Tip: Consider working in a duplicate sheet to protect the original data.
  2. 2

    Decide your method: CONCAT/&, TEXT, or custom format

    Choose the approach that best fits your workflow: simple label in the same cell, dynamic display with formatting, or a true text value for complex pipelines.

    Tip: TEXT is ideal when you need consistent formatting like leading zeros and fixed widths.
  3. 3

    Apply prefix with CONCAT or & operator

    In the destination cell, enter ="ORD-"&A2 or =CONCAT("ORD-",A2). This prepends the label to the numeric value while keeping the underlying number intact when possible.

    Tip: If A2 is numeric, the result will be text in the destination cell.
  4. 4

    Use TEXT() for precise formatting

    If you need a fixed prefix and formatting (e.g., leading zeros), use =TEXT(A2, "ORD-0000"). This converts the number to text with a prefixed pattern.

    Tip: TEXT converts to text; use this when you must preserve the display format.
  5. 5

    Set a custom number format for display-only prefixes

    Apply a custom format to the cell like "ORD-"0000 without changing the value. Go to Format > Number > More Formats > Custom number format and enter "ORD-"0000.

    Tip: This method preserves the numeric value for calculations; the prefix is a display only.
Pro Tip: Test on a copy of your data to ensure formulas or formats behave as expected.
Warning: Be aware that many methods convert numbers to text, which can affect sorting and calculations.
Note: Custom formats show prefixes without changing the underlying value in cells where formulas rely on numbers.

FAQ

Can I prefix numbers in place without using a separate column?

Yes, using a custom number format or built-in formatting can display a prefix without changing the underlying value. However, some methods will convert numbers to text, affecting calculations.

Yes, you can display prefixes using formats; be mindful of potential impacts on calculations.

Will prefixes interfere with sorting?

If the display becomes text, sorting may treat values as text. Use formats that preserve the numeric value for sorting when possible.

Yes, if numbers turn to text, sorting can be affected.

What is the easiest method for a single column?

For a quick display, CONCAT or & with a helper column is simple and transparent. This keeps the original numbers intact in their column.

A simple helper column with CONCAT works well.

Can I use different prefixes for different rows?

Yes. You can build the prefix dynamically using another cell (e.g., =A2&"-"&B2) or use separate rules for different ranges.

Yes, prefixes can vary per row.

Watch Video

The Essentials

  • Prefix without losing numeric value
  • Use CONCAT/& for flexibility
  • TEXT() for precise formatting
  • Custom-number formats for display-only prefixes
  • Test changes on a copy first
Process infographic showing steps to prefix numbers in Google Sheets
How to prefix text before numbers in Google Sheets

Related Articles