Deduplicate spreadsheet rows keeping latest entry
Finds duplicate records in your data and generates clean formulas or step-by-step instructions to keep only the newest record.
Text prompt for ChatGPT and Claude
You get: Identified Key Columns, modern Formula Method and native Toolbar Method
Prompt
Act as an expert spreadsheet analyst. Review the table headers and sample rows pasted below to provide the exact steps to deduplicate rows while preserving the newest record.
Rules:
- Identify which column represents the unique identifier and which represents the timestamp or date.
- Provide an exact formula solution for Excel and Google Sheets using modern functions like SORT and UNIQUE or FILTER.
- Provide a non-formula menu-based fallback method using native sorting and deduplication.
- State clearly what happens if two identical identifiers share the exact same timestamp.
Output format:
1. Identified Key Columns
2. Modern Formula Method (with exact syntax)
3. Native Toolbar Method (numbered steps)
4. Verification Step
My data headers and sample rows are below:Example output
Paste your column names and a few sample rows at the bottom of the prompt in Claude, ChatGPT, or Gemini. As a follow-up, ask how to adapt the formula if your date column uses text strings instead of true dates.
Reuse it: Use in a workflowTurn into a skillAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Write Google Sheets REGEX Formulas to Extract and Clean Text
Get ready-to-paste REGEXEXTRACT, REGEXREPLACE, or REGEXMATCH formulas for Google Sheets with a token-by-token breakdown.
Clean phone numbers and postal codes using Excel formulas
Transform irregular contact details into uniform formats for clean CRM imports. Use this whenever raw exports mix dashes, dots, spaces, or leading zeroes.
Consolidate separate spreadsheet tabs into a master rollup
Design a dynamic rollup architecture to aggregate multiple project or regional sheets into one live master summary that will not break when rows expand.
Parse Unstructured Text into Clean Excel Columns
This prompt generates specific Excel formulas to split messy text strings into organized columns while handling edge cases like missing delimiters.
Clean and Standardize Messy Spreadsheet Data with Exact Formulas
Get a column-by-column cleaning plan with ready-to-fill formulas for spaces, case, dates and duplicates, plus a list of rows that need a manual check.
Pick XLOOKUP, VLOOKUP or INDEX MATCH and Get the Exact Formula
You get one recommended lookup method for your Excel version and data layout, a paste-ready formula, and clear handling for values that have no match.
- Strip hidden characters and non-printing breaks in Excel
- Explain Any Excel or Google Sheets Formula Step by Step in Plain English
- Write an Excel or Google Sheets Formula from Plain English
- Fix divide-by-zero errors in Excel variance formulas
- Highlight matching values across two separate spreadsheet columns
- Convert dragged Google Sheets formulas to ARRAYFORMULA