Skip to content
Guideasset registerequipment tagsexcel

How to find duplicate equipment tags in Excel

Three ways to find repeated tags in an equipment list in Excel, including the ones a plain duplicate check misses, such as P-101B and P101B.

Author
AATTRL team
Published
Reading time
4 min read

Duplicate tags are the most common fault in an equipment list, and the most expensive once the list is loaded into a CMMS: two records for one pump means split work-order history, and one record for two pumps means the wrong spares on the job. This guide shows how to find them in Excel before that happens, starting with the quick check and ending with the duplicates Excel does not see on its own.

It assumes the tags are in column A, with a header in A1 and the first tag in A2. Change the ranges to fit your list.

1. Highlight exact repeats

  1. Select the tag column.
  2. Select Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values.
  3. Choose a format and confirm.

Every tag that appears more than once is now coloured. This is quick, but it only tells you that a tag repeats, not how many times, and you cannot sort or filter on it easily.

2. Count how often each tag appears

In an empty column, in row 2, enter this and fill it down:

=COUNTIF($A$2:$A$5000,A2)

Any row showing 2 or more is a repeated tag. Filter the column for values greater than 1 and sort by tag to see the repeats side by side.

Two things to know about COUNTIF:

  • It ignores upper and lower case. p-101a and P-101A are counted as the same tag. For equipment tags that is what you want.
  • It treats ? and * as wildcards. If any of your tags contain a question mark or an asterisk, the count will be wrong for those rows. They are rare in tags, but check for them before you trust the result.

3. Find the same tag written in different ways

Steps 1 and 2 only find tags that are typed identically. In a list built up over years by different people, the same pump often appears as P-101B, P101B and P 101B, and Excel treats those as three different tags.

To catch them, build a comparison key that strips out what people type inconsistently. In column B, row 2:

=UPPER(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TRIM(A2),"-","")," ",""),"_",""),"/",""))

This removes hyphens, spaces, underscores and slashes and converts to capitals, so all three spellings become P101B. Then count on the key instead of the tag. In column C, row 2:

=COUNTIF($B$2:$B$5000,B2)

Fill both down. Any row with 2 or more in column C shares its key with another row. Sort by column B to group them.

Read the groups before changing anything. Some are true duplicates written two ways. Others are different items whose tags happen to collapse to the same key, for example HX-41 and HX-4/1; those are not duplicates, but they are tags someone will confuse, and worth knowing about.

4. Find letter-for-digit mix-ups

The hardest duplicates to see are a letter O typed for a zero, or a capital I for a one: V-2O1 and V-201 are hard to tell apart in many fonts. Add one more column, D, that swaps those letters for digits in the key:

=SUBSTITUTE(SUBSTITUTE(B2,"O","0"),"I","1")

and count on it in column E:

=COUNTIF($D$2:$D$5000,D2)

A row that shows 1 in column C but 2 or more in column E has a look-alike somewhere in the list.

This step produces false matches whenever O and I are meant as letters, as in PIC-101 and P1C-101, so treat it as a list of rows to look at, not rows to delete.

What the formulas do not catch

  • Leading zeros. TK-001 and TK-1 are not matched by any step above, and there is no short formula that handles them safely.
  • Tags in more than one column or sheet. Each formula looks at one range.
  • Everything that is not a duplicate. Missing descriptions, parents that do not exist, inconsistent criticality values and mixed tag formats need their own checks.

The same check without formulas

The free duplicate tag finder does steps 2 to 4, and leading zeros, in one go: paste the tag column and it lists exact repeats, separator variants and look-alikes in separate groups, with a CSV to download. It runs in your browser, so the tags are not uploaded.

For the whole equipment list, the asset register checker reads the Excel file directly and also reports missing fields, broken parent links and tag format problems.

If the list turns out to need more work than you have time for, AATTRL does the clean-up as a paid service, with a fixed written quote before any work starts.

Sources

The Excel behaviour described here was checked on 28 November 2026 against Microsoft Support: the COUNTIF function page (case, wildcards) and Find and remove duplicates (menu paths, the warning about permanent deletion). The formulas were run on a test list containing each example tag in this guide.