Uppercase Supplier Codes in Excel Without Overwriting the Original

To standardize uppercase supplier codes while keeping the imported codes intact, enter =UPPER(A2) in B2 and fill the formula down; with A2 containing acme-17, B2 returns ACME-17. Use this helper-column approach when codes arrive with inconsistent capitalization and need to sort, match, or appear consistently in a report. Do not replace the import column until you have reviewed the results.

Why supplier codes look inconsistent

Codes such as acme-17, AcMe-17, and ACME-17 do not have consistent capitalization when displayed in a report. The UPPER function converts text to uppercase. Keep the source data in one column and put the converted result beside it so that the original and standardized values remain available for review.

Standardize uppercase supplier codes with UPPER

  1. Keep the imported supplier code in column A.
  2. Add a heading such as Standardized code in B1.
  3. In B2, enter =UPPER(A2) and press Enter.
  4. Fill B2 down through the remaining supplier-code rows.
  5. Review the results beside the source values. If a permanent replacement is required, copy the reviewed helper results and use Paste Values over the destination column.

Microsoft documents =UPPER(A2) for converting text to uppercase and describes using a temporary adjacent column before pasting values when a permanent replacement is needed. See Microsoft’s instructions for changing text case in Excel.

Worked supplier-code example

Synthetic sample input: A2 contains acme-17, A3 contains AcMe-17, A4 contains north-04, and A5 contains ACME-17. Enter the formula once in B2, then fill it down to B5.

CellImported supplier codeFormula or expected value
A2 / B2acme-17=UPPER(A2) → ACME-17
A3 / B3AcMe-17=UPPER(A3) → ACME-17
A4 / B4north-04=UPPER(A4) → NORTH-04
A5 / B5ACME-17=UPPER(A5) → ACME-17

The expected results are ACME-17 in B2 and B3, NORTH-04 in B4, and the unchanged ACME-17 in B5. The last row is a useful boundary check: if A5 already contains ACME-17, =UPPER(A5) returns ACME-17; this confirms that an already-uppercase code is not altered beyond its case.

What UPPER does not clean

UPPER changes letter case only: it does not remove leading, trailing, or repeated spaces, and TRIM does not by itself remove nonbreaking spaces. If a code such as acme-17 has ordinary ASCII spaces at either end, UPPER leaves those spaces in place; clean the spacing separately before relying on an exact match.

For ordinary spaces, use a separate cleanup step with =TRIM(A2), then apply UPPER to the cleaned result in a helper column. Microsoft explains that TRIM removes extra 7-bit ASCII spaces but does not by itself remove nonbreaking spaces. A code containing a nonbreaking space can still fail an exact comparison after TRIM, because TRIM is designed for the 7-bit ASCII space character and does not by itself remove nonbreaking spaces. For controlled spacing changes across a range, see this guide to batch inserting or removing spaces in Excel.

Common matching mistake

Symptom: two codes appear the same after uppercase conversion but an exact comparison returns FALSE. Cause: one cell may have leading, trailing, repeated, or nonbreaking spacing. Fix: inspect the source value, remove ordinary ASCII spacing with a separate TRIM step, and investigate nonbreaking spaces before treating the values as the same code. If case itself is meaningful in an approval process, use a deliberate case-sensitive check rather than normalizing the code; this explanation of case-sensitive text comparison for approval codes covers that different requirement.

Compatibility and limits

Microsoft’s change-case documentation lists Excel for Microsoft 365, Excel 2024, Excel 2021, Excel 2019, and Excel 2016 among the versions to which its UPPER instructions apply. The formula produces a result in the helper column; use Paste Values only when you intentionally need fixed text instead of a live formula.

This method standardizes capitalization only. It does not validate whether a supplier code is legitimate, reconcile different code formats, remove nonbreaking spaces, or determine that differently punctuated codes refer to the same supplier.

Sources

Worked example details and boundary cases

Method

Use a temporary helper column beside the imported code column, review the uppercase results, and copy and paste values only if the original column must eventually be replaced.

If a code such as ” acme-17 ” has ordinary ASCII spaces at either end, UPPER leaves those spaces in place; clean the spacing separately before relying on an exact match.

Practice with the exact example data

Use a separate blank worksheet for each example. Enter each value at its listed cell address, then type the formula in AA1. Quoted text is shown in JSON notation to preserve spaces: enter the characters inside the quotes, without the quotes, using a leading apostrophe to keep text and spaces literal. An empty quoted string means an explicit empty text value; use an apostrophe entry where appropriate. Compare your result with the expected result below. These are synthetic practice data.

Example 1 — Main case

Cell Input value
A2 “acme-17”

Formula in AA1: =UPPER(A2)

Expected result: “ACME-17”

Example 2 — Boundary case

Cell Input value
A5 “ACME-17”

Formula in AA1: =UPPER(A5)

Expected result: “ACME-17”

These examples were checked with a limited calculator supporting numeric aggregates, ASCII text functions, exact criteria and exact first-match XLOOKUP. Only the displayed examples and supported semantics were calculated. They were not executed in Microsoft Excel. This check does not verify every claim in the article.

Synthetic examples are provided for practice. They are not evidence of personal experience, independent human review or execution in Microsoft Excel.

Leave a Reply

Your email address will not be published. Required fields are marked *