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
- 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.
- 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.
- 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
| Contract | Proposed proof | Reject when |
|---|---|---|
| Selection meaning | Compare repeated and singleton fixtures | Exactly once is mistaken for deduplicated |
| Comparison unit | Match the operator to the intended record | A 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.
