logo
search
Formula Errors

How to Fix Excel Wrong Data Type Error After Pasting Database Data

Maira MehtabMaira Mehtab Sep 20, 2026 868 views

Question details

The user is experiencing a 'wrong data type' error in Excel concatenation formulas after pasting data from a database report, and the 'Paste as Text' option is unexpectedly missing.

Product
Microsoft 365 Excel
Device & OS
Windows 11
Scenario
Pasting exported database report data into a spreadsheet to be used in concatenation formulas.
Observed behavior
Excel formulas return 'a value used in the formula is the wrong data type', and the standard 'Paste as Text' option is no longer available in the paste menu.
Before you start

Verify whether you are copying an entire cell or just the text contents from the formula bar, as this changes which paste options Excel makes available.

Solution 1Recommended

Disable Automatic Data Transformations in Excel Settings

Prevent Excel from automatically changing the format of your pasted database text, which often resolves unexpected formula data type errors.

Microsoft 365 Excel includes a feature that automatically converts specific text patterns into data types. When pasting database reports, this automatic conversion can alter text into formats that are incompatible with concatenation formulas, resulting in the wrong data type error.

1
Open Excel Options

Click the 'File' tab in the top-left corner of Microsoft Excel, then select 'Options' at the bottom of the left sidebar.

2
Navigate to Data Settings

In the Excel Options dialog box, click on 'Data' in the left-hand navigation pane.

3
Disable Automatic Conversions

Scroll down to the 'Automatic Data Conversion' section. Uncheck the options that enable default data transformations for text entered, pasted, or imported into Excel.

4
Apply and Test

Click 'OK' to save your new settings, then try pasting your database report data again to see if your concatenation formulas function normally.

Version Compatibility: This setting is specific to newer builds of Microsoft 365 Excel. If you are using an older version, this section may not appear in your options menu.
Free Microsoft Office alternative

Switch to WPS Office for Clean Data Handling

If Excel's automatic formatting continues to disrupt your workflow, consider using WPS Office. WPS Spreadsheet handles database exports cleanly without forcing unwanted data type conversions, keeping your concatenation formulas working flawlessly.

  1. 1. Open Your File: Launch WPS Spreadsheet and open your existing Excel workbook.
  2. 2. Paste Unformatted Text: Right-click the target cell, choose 'Paste Special', and select 'Unformatted Text' to safely input your database report data.
  3. 3. Run Formulas: Your concatenation formulas will immediately process the raw text without returning data type errors.
Fully compatible with Microsoft Excel formats (.xlsx, .xls) and CSV files.Pastes database text cleanly without triggering automatic data type errors.Lightweight and completely free to use on Windows, Mac, and Linux.Familiar user interface ensures a seamless transition from Microsoft 365.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Excel concatenation formula show a wrong data type error?

This error typically occurs when a cell referenced in your concatenation formula contains an incompatible data type, such as an error value (#VALUE!) or data that Excel has automatically transformed into an unrecognized format during pasting.

Where did the 'Paste as Text' option go in Microsoft 365?

The 'Paste as Text' option usually disappears if you double-click into a cell, which puts it into edit mode. To restore the option, press the 'Esc' key to exit edit mode, then right-click the cell itself rather than clicking inside it.

How do I stop Excel from automatically reformatting my pasted text?

In newer versions of Microsoft 365 Excel, you can prevent automatic reformatting by going to File > Options > Data and disabling the automatic data conversions settings for text entered, pasted, or imported.