How to Keep Manual Excel Data Matched to Linked External Records
Question details
The user needs to ensure manually entered data stays aligned with external imported records, even when new rows are inserted or data shifts.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Updating linked workbooks where imported data shifts due to new records being added, causing manually entered values in adjacent columns to misalign.
- Observed behavior
- Inserted rows shift the imported data, causing manual values that rely on row position to associate with the wrong record.
Ensure that both your external data source and your manual entry workbook share a stable, unique identifier (like an ID number, SKU, or email) for every record before attempting to link them.
Use Lookup Formulas with Unique Identifiers
This is the most reliable method to match records dynamically, preventing misalignment when rows are inserted or deleted in the external data source.
By relying on a unique identifier rather than row placement, lookup formulas ensure that your manual data always connects to the correct external record, regardless of how the data is sorted or updated.
Ensure both the external data and your manual data sheet have a column containing a unique ID for each row.
Select your manual data range and press Ctrl+T to format it as an Excel Table. Do the same for your imported external data. This makes referencing structured and dynamic.
In your combined or manual table, insert a formula like =XLOOKUP([@UniqueID], ExternalData[UniqueID], ExternalData[TargetColumn]) or =VLOOKUP([@UniqueID], ExternalData, 2, FALSE) to pull in the external data.
When the external workbook gains new records, go to the Data tab and select 'Refresh All'. The formulas will match the new and old data accurately by ID, rather than relying on cell position.

Store Imported and Manual Data in a Single Table
Keep both imported and manually entered columns in the exact same structured Excel Table to prevent accidental row shifting.
Manage Linked Data Efficiently with WPS Spreadsheet
WPS Spreadsheet offers powerful lookup functions and seamless external data linking to ensure your manual and imported records stay perfectly aligned without the risk of row shifting.
- 1. Open WPS Spreadsheet: Launch WPS Office and open the workbook where you want to combine manual and external data.
- 2. Import External Data: Navigate to the Data tab and use the Import Data function to bring in your external records.
- 3. Format as Table: Select your data range and click 'Format as Table' in the Home tab to ensure row integrity.
- 4. Apply Lookup Functions: Use VLOOKUP or XLOOKUP referencing your unique IDs to merge manual data securely with external records.

Frequently Asked Questions
Why does my manual data mismatch when I update external links?
If you manually type data next to imported records without using lookup formulas or Table structures, the spreadsheet relies solely on the row number. When the external source adds or deletes records, the imported data shifts, but your manual data stays in the same cell, causing a mismatch.
What is a stable unique identifier in Excel?
A unique identifier is a specific value that is different for every row or record, such as an Employee ID, Product SKU, or Invoice Number. It is crucial for accurately matching data across different tables.
Should I use VLOOKUP, XLOOKUP, or INDEX/MATCH?
XLOOKUP is the most modern and flexible option if your software supports it. INDEX/MATCH is highly robust and doesn't break if columns are inserted. VLOOKUP is widely used but requires the lookup value to be in the first column of your selected range.
Can I just lock the cells to prevent data from shifting?
Locking cells prevents manual editing but does not stop imported data from misaligning when external records are updated. You must use formula-based matching or structured Tables to maintain data alignment dynamically.




