Turn a data definition into review rules before deleting or rewriting rows. Start with the source facts, copy a ready-to-use prompt and check the result before using it.
A repeated customer name is not automatically a duplicate record. Use AI to help describe review rules and exceptions, then apply those rules to a preserved working copy. The objective is an explainable dataset, not the smallest possible row count.
Prepare the information that matters
Keep the original export unchanged. Describe what one row represents, the expected comparison key and which person owns ambiguous business rules. Share a sanitized sample instead of a customer export when the structure alone is sufficient.
Use a service your organization permits for this material. A pasted excerpt is the assistant's source for this workflow; the prompt does not give it access to files, mail or meetings you have not supplied.
Copy the ready-to-use prompt
The main prompt
Copy this into your AI assistant. Add your notes where marked.
Help me plan a careful review of the spreadsheet sample below. First establish what one row represents and which columns identify a record. Ask me if that definition is missing. Separate identical rows, conflicting records with the same key, legitimate repeated values, blanks and format inconsistencies. Do not assume a repeated name is a duplicate record. Return proposed review rules, an exceptions table and before/after checks. Keep the source unchanged. Do not delete records, guess which conflicting value is correct or claim to have cleaned a workbook. List the decisions that require the data owner. SAMPLE AND CONCERNS [Paste a small anonymous sample and describe what you want to check here]
Work through a concrete example
Input to work from
Two identical lines for 101/P1. Two lines for 102/P2 have quantities 1 and 3. Morgan appears on both orders.
A useful output to compare against
101/P1: exact-repeat candidate; review the two identical rows. 102/P2: key conflict; quantities differ, so do not delete one as an exact duplicate. Morgan: repeated customer name; not itself a duplicate key. Before changing anything: record 4 source rows, define the retention rule and resolve the quantity conflict with the owner.
This is an editorial worked example, not a captured response from a particular model. Your assistant may return different wording or make mistakes.
Why these choices matter
The example separates a repeated row from a disagreement about the value. It does not decide whether to keep the first or last conflicting entry. That decision depends on how the source system creates order lines and what the data owner confirms.
Review and improve the first answer
Use this after the first answer, in the same conversation. Keep the original source available.
Challenge the proposed key using the sample. Identify legitimate repeated values that must remain. Distinguish identical rows from conflicting records with the same key. List the decisions that require the data owner.
Ask for a specific correction when the response misses the goal. Changing the requested format can improve readability; it cannot make an unsupported fact true. Return to your source when the answer changes a number, date, responsibility or condition.
Check the result before using it
- Confirm what a row represents before accepting a key.
- Keep row counts and known totals from the source copy.
- Record conflicts separately from exact-repeat candidates.
- Compare reviewed output with the untouched source and explain every exclusion.
Fix the common failure patterns
| What goes wrong | What to change |
|---|---|
| AI suggests deleting every repeated name | Restate the row definition and comparison key. |
| Whitespace is normalized without review | Check whether formatting differences carry meaning. |
| Conflicts disappear into a clean total | Keep an exceptions register with the unresolved decision. |
Use the plan alongside the preserved source and an exceptions record. A smaller output is not proof of better data; the record owner must be able to explain which rows changed and why.
Find another task in the AI at Work prompt library, or continue with the related DeskPlain guides below.
Keep these in mind
- Confirm what a row represents before accepting a key.
- Keep row counts and known totals from the source copy.
- Record conflicts separately from exact-repeat candidates.
Common questions
Does the prompt run an AI assistant on DeskPlain?
No. This is a library of ready-to-copy prompts. Copy the text, add your source material in your chosen AI assistant and review the answer.
Are the examples real user data or model test results?
No. They are original fictional worked examples showing the intended reasoning and checks. They are not a benchmark or captured model output.
Will the prompt always return a correct result?
No. Review the result against the source and the task-specific checks. Ask about missing information instead of accepting an invented answer.
Sources & further help
Original DeskPlain prompts and fictional worked examples, prepared with AI assistance. Examples illustrate the intended reasoning; they are not captured model responses or a claim of testing across AI products. Read the editorial policy.