logo
search
Formula Errors

How to Fix Excel UNIQUE Formula Not Working in One Workbook

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

Question details

The UNIQUE formula functions correctly in other files but fails to calculate within one specific Excel workbook, displaying as text instead.

Product
Excel
Device & OS
not provided
Scenario
Using the UNIQUE function to extract distinct values from a dataset within an existing workbook.
Observed behavior
The formula does not execute or calculate the array; it only works if the data is copied over to a brand-new workbook.
Before you start

Before modifying your formula, check if the cell containing the UNIQUE function displays the formula text itself instead of the calculated result, which is the primary indicator of a formatting issue.

Solution 1Recommended

Change Cell Formatting from Text to General

The most common reason a formula fails to calculate in a specific workbook is that the cells were pre-formatted as Text before the formula was entered.

When a cell is formatted as Text, Excel treats everything typed into it—including functions starting with an equal sign—as standard alphanumeric text, skipping the calculation process entirely.

1
Select the formula cell

Click on the cell or highlight the range of cells where the UNIQUE formula is currently typed but not calculating.

2
Modify the number format

Navigate to the Home tab on the Excel ribbon, locate the Number group, and click the dropdown menu to change the format from 'Text' to 'General'.

3
Recalculate the formula

Double-click the cell or press F2 to enter edit mode, then press Enter. This forces Excel to recognize and calculate the formula.

Formula Triggered: Once the format is updated and the cell is refreshed, the UNIQUE array should immediately spill the distinct values into the adjacent cells.
Use Dynamic Arrays in WPS Spreadsheet

Easily Extract Unique Values with WPS Spreadsheet

WPS Spreadsheet fully supports dynamic array formulas, including the UNIQUE function, with seamless compatibility for Microsoft Excel files. It automatically handles calculations without requiring manual formatting adjustments in most standard workflows.

  1. 1. Open your file: Launch WPS Spreadsheet and open the workbook containing your dataset.
  2. 2. Select the destination: Click on an empty cell where you want the unique distinct values to start spilling.
  3. 3. Enter the formula: Type =UNIQUE( and highlight the range of data you want to analyze.
  4. 4. Generate results: Type a closing parenthesis and press Enter to instantly extract the unique entries.
Fully compatible with Microsoft Excel (.xlsx) file formats.Supports dynamic array formulas like UNIQUE, FILTER, and SORT natively.Smart formula auditing tools to quickly identify formatting errors.Free and lightweight alternative to heavy spreadsheet programs.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show my formula as plain text instead of calculating it?

This typically happens when the cell's number format is set to 'Text' before you type the formula. Excel treats the equal sign and the function name as a regular text string. You must change the format to 'General', press F2, and press Enter to fix it.

Why does copying data to a new workbook fix my formula issues?

New workbooks have default cell formatting, which is usually set to 'General'. When you paste unformatted data or formulas into a new workbook, it bypasses the specific 'Text' formatting rules that were preventing calculations in the original file.

How do I remove the green triangles in my Excel cells?

Green triangles indicate an error or inconsistency, such as numbers being stored as text. To resolve this, select the affected cells, click the yellow warning icon that appears beside them, and choose 'Convert to Number'.

Can the UNIQUE function spill results into multiple columns?

Yes, if your selected array spans multiple columns, the UNIQUE function will evaluate distinct rows across those columns and automatically spill the results into the adjacent cells, maintaining the original column structure.