Skip to content

Why does Excel UNIQUE remove every repeated portrait name when I only wanted a deduplicated list?

UNIQUE can return distinct values or only values that occur exactly once, depending on its exactly_once argument. These are different selection policies. A distinct list retains one representative value for repeated entries; exactly-once selection excludes values that repeat. Define the comparison unit and purpose before using the output to organize portrait files, review assignments or other production records.

PRODUCTION LEDGER TOOLSAISwapLab team · Editorial methodPublished 3 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file
Editorial workflow: Define the comparison unit and purpose → Choose distinct or exactly-once selection explicitly → Test a repeated and an unrepeated value together.
Original editorial workflow diagram. It summarizes the guide's decisions; it is not a model output, interface screenshot or additional quality experiment.

Why does Excel UNIQUE remove every repeated portrait name when I only wanted a deduplicated list?

The external worksheet does not alter AISwapLab’s upload cards or selected-person mapping. Reusing one portrait for two intentional roles may be valid, so repetition alone is not a production error. This documentation-based procedure is unexecuted and addresses a native array operator’s meaning rather than a generic instruction to remove duplicate records. The relevant question is whether repeats should collapse or disqualify a value.

What to do next

  1. 01

    Define the comparison unit and purpose

    Retain the original records and state whether the goal is a reference list, an ambiguity check or a complete assignment register. Decide whether comparison should use one filename, an entire row of fields or another explicitly defined identifier. Do not deduplicate a portrait column if the required output must preserve two role assignments that intentionally use the same portrait. A filename list and a role-to-photo mapping are different data products even when they originate in the same worksheet.

  2. 02

    Choose distinct or exactly-once selection explicitly

    For a simple vertical fixture in A2:A5, compare =UNIQUE(A2:A5) with =UNIQUE(A2:A5,FALSE,TRUE). The second expression asks for values occurring exactly once; it is not a stronger version of ordinary deduplication. Microsoft also documents by_col for choosing row versus column comparison. Keep that choice aligned with the actual comparison unit. Check support for dynamic arrays in the recipient’s Excel edition and place the output where it can spill without overwriting unrelated content.

  3. 03

    Test a repeated and an unrepeated value together

    Use at least one value that occurs twice and another that occurs once. Compare which values survive under each policy, then inspect whether the result still serves its stated production purpose. Keep the untouched source register so omitted repetitions can be explained and recovered from the authorized original. If the result is used to identify ambiguous assignments, treat it as one diagnostic and inspect the original rows. A clean list does not prove that each retained portrait belongs to the correct person or has permission for use.

A concrete example

Unexecuted fixture: A2:A5 contains amber.jpg, amber.jpg, blue.jpg and green.jpg. Default UNIQUE proposes one occurrence of each filename; exactly_once TRUE excludes amber.jpg entirely. If two roles intentionally use amber.jpg, neither output replaces the two assignment rows. These filenames are invented. No Excel array was evaluated, image generated or website upload mapping changed during this documentation-based example.

Production ledger native-contract worksheet

ContractProposed proofReject when
Selection meaningCompare repeated and singleton fixturesExactly once is mistaken for deduplicated
Comparison unitMatch the operator to the intended recordA portrait list replaces a role assignment register

Before you call it ready

  • State whether repeats collapse or disqualify a value.
  • Choose filename, row or column comparison deliberately.
  • Preserve the source assignment register beside the derived list.

When to stop or choose another method

Stop if duplicate meaning is unresolved or if a derived list discards role information required for approval. Return to the original records. UNIQUE establishes an array selection policy, not likeness quality, identity verification, consent or correct assignment.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example