COUNTUNIQUE
Unsupported (not recognized)Category: Math · Last tested 2026-09-01
Real compatibility results for the COUNTUNIQUE function: executed in Excel for the web, Google Sheets and LibreOffice Calc, measured against Google’s published documentation. Excel does not document COUNTUNIQUE, so this page makes no claim about Excel. Syntax and links to that documentation are below.
Support matrix
| Engine | Documented | Live-tested | Verdict |
|---|---|---|---|
| Excel (desktop) | No | n/a (not an Excel function) | n/a |
| Excel for the web | — | Yes (recalc, 2026-09-01) | Unsupported (not recognized) |
| Google Sheets | Yes | Yes (Drive import, 2026-09-01) | Supported, behaves as documented |
| LibreOffice Calc | No | Yes (25.8.7.3, 2026-09-01) | Unsupported (not recognized) |
LibreOffice version history
We executed the same test cases under each LibreOffice release to show exactly when COUNTUNIQUE’s support changed — not documentation claims, real results.
| LibreOffice version | Verdict | Tested |
|---|---|---|
| 24.2.0.3 | Unsupported (not recognized) | 2026-09-01 |
| 24.8.7.2 | Unsupported (not recognized) | 2026-09-01 |
| 25.2.0.3 | Unsupported (not recognized) | 2026-09-01 |
| 25.8.7.3 | Unsupported (not recognized) | 2026-09-01 |
Why isn't COUNTUNIQUE working in LibreOffice?
LibreOffice Calc does not implement COUNTUNIQUE as of 25.8.7.3 — in our
executed tests it returns a #NAME? (unrecognized function) error. This is not a typo or a
settings problem, and saving the file as .xlsx does not change it: the function simply isn’t
available yet.
Watch the LibreOffice version support page —
we re-run every test on each new release, so it will flip to Supported here as soon as it lands.
Discovered quirks
-
=COUNTUNIQUE(1,1,2,3,5,8,13) on
Excel for the web returned
#NAME?, but the documented/expected
result is 6.
Provenance
The page's Sample Usage prints COUNTUNIQUE(1,1,2,3,5,8,13,A2,B6:B9) and NO result. This case takes the literal head of that sample; 6 is DERIVED from the definition "Counts the number of unique values in a list of specified values and ranges" -- the seven arguments hold six distinct values because 1 appears twice. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405. BATCH PROVENANCE (batch H, the first Sheets/LibreOffice-only batch). Every function in this batch has x == false in docs/data/compat.json: it is a Google Sheets function that Microsoft does not document at all, so this corpus makes NO claim about it in that engine and nothing here is measured against that vendor's documentation. The authority is Google's own support.google.com function page, cited by full URL and by the date it was read -- Google publishes no version number for these pages, so a bare URL dates nothing. WHAT GOOGLE ACTUALLY PRINTS, WHICH IS LESS THAN IT LOOKS: most of these pages carry a 'Sample Usage' block of FORMULAS WITH NO RESULTS. Where a value below is Google's own published output the note says so; where it is derived from the page's stated semantics the note says that instead, and says from which sentence. No value in this batch was taken from a search snippet, a blog or a mirror. LIBREOFFICE: probed on all four pinned builds (24.2.0.3, 24.8.7.2, 25.2.0.3, 25.8.7.3) in five storage spellings -- plain, _xlfn., COM.MICROSOFT., ORG.OPENOFFICE. and _xlfn.ORG.OPENOFFICE. -- and #NAME? under every one of them, so the expected values below describe Google Sheets and the LibreOffice column records absence.; MISMATCH vs expected: expected 6, got '#NAME?'
-
=COUNTUNIQUE(A1:A5) on
Excel for the web returned
#NAME?, but the documented/expected
result is 3.
Provenance
Derived from the same definition; the page publishes no results and populates none of the cells its samples name. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405.; MISMATCH vs expected: expected 3, got '#NAME?'
-
=COUNTUNIQUE(1,1,2,3,5,8,13,A2,B6:B9) on
Excel for the web returned
#NAME?, but the documented/expected
result is 9.
Provenance
The page's own sample formula, with the cells it names populated by this corpus (Google leaves them unset). The union of {1,2,3,5,8,13}, {2} and {21,34,55,1} has nine distinct members -- A2's 2 and B9's 1 are both already present, which is the point of choosing them. DERIVED, not published. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405.; MISMATCH vs expected: expected 9, got '#NAME?'
-
=COUNTUNIQUE(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35) on
Excel for the web returned
#NAME?, but the documented/expected
result is 35.
Provenance
DERIVED FROM THE PAGE'S ONE NOTE, which is the only substantive claim it makes: "Although COUNTUNIQUE is specified as taking a maximum of 30 arguments, Google Sheets supports an arbitrary number of arguments for this function." Thirty-five distinct arguments therefore must count 35. Without that Note the same call would be a documented error rather than a documented value. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405.; MISMATCH vs expected: expected 35, got '#NAME?'
-
=COUNTUNIQUE(1,1,2,3,5,8,13) on
LibreOffice Calc returned
#NAME?, but the documented/expected
result is 6.
Provenance
The page's Sample Usage prints COUNTUNIQUE(1,1,2,3,5,8,13,A2,B6:B9) and NO result. This case takes the literal head of that sample; 6 is DERIVED from the definition "Counts the number of unique values in a list of specified values and ranges" -- the seven arguments hold six distinct values because 1 appears twice. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405. BATCH PROVENANCE (batch H, the first Sheets/LibreOffice-only batch). Every function in this batch has x == false in docs/data/compat.json: it is a Google Sheets function that Microsoft does not document at all, so this corpus makes NO claim about it in that engine and nothing here is measured against that vendor's documentation. The authority is Google's own support.google.com function page, cited by full URL and by the date it was read -- Google publishes no version number for these pages, so a bare URL dates nothing. WHAT GOOGLE ACTUALLY PRINTS, WHICH IS LESS THAN IT LOOKS: most of these pages carry a 'Sample Usage' block of FORMULAS WITH NO RESULTS. Where a value below is Google's own published output the note says so; where it is derived from the page's stated semantics the note says that instead, and says from which sentence. No value in this batch was taken from a search snippet, a blog or a mirror. LIBREOFFICE: probed on all four pinned builds (24.2.0.3, 24.8.7.2, 25.2.0.3, 25.8.7.3) in five storage spellings -- plain, _xlfn., COM.MICROSOFT., ORG.OPENOFFICE. and _xlfn.ORG.OPENOFFICE. -- and #NAME? under every one of them, so the expected values below describe Google Sheets and the LibreOffice column records absence.; MISMATCH vs expected: expected 6, got '#NAME?'
-
=COUNTUNIQUE(A1:A5) on
LibreOffice Calc returned
#NAME?, but the documented/expected
result is 3.
Provenance
Derived from the same definition; the page publishes no results and populates none of the cells its samples name. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405.; MISMATCH vs expected: expected 3, got '#NAME?'
-
=COUNTUNIQUE(1,1,2,3,5,8,13,A2,B6:B9) on
LibreOffice Calc returned
#NAME?, but the documented/expected
result is 9.
Provenance
The page's own sample formula, with the cells it names populated by this corpus (Google leaves them unset). The union of {1,2,3,5,8,13}, {2} and {21,34,55,1} has nine distinct members -- A2's 2 and B9's 1 are both already present, which is the point of choosing them. DERIVED, not published. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405.; MISMATCH vs expected: expected 9, got '#NAME?'
-
=COUNTUNIQUE(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35) on
LibreOffice Calc returned
#NAME?, but the documented/expected
result is 35.
Provenance
DERIVED FROM THE PAGE'S ONE NOTE, which is the only substantive claim it makes: "Although COUNTUNIQUE is specified as taking a maximum of 30 arguments, Google Sheets supports an arbitrary number of arguments for this function." Thirty-five distinct arguments therefore must count 35. Without that Note the same call would be a documented error rather than a documented value. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405.; MISMATCH vs expected: expected 35, got '#NAME?'
Executed test cases
Excel for the web (executed 2026-09-01 via OneDrive recalculation)
These values come from Excel for the web, not from desktop Excel. They are two different implementations of the calculation engine, and this run measured only the web one: the corpus was uploaded to OneDrive as .xlsx, recalculated by Excel for the web on open, and downloaded again for readback. Excel for the web is a rolling service with no pinnable version, so the run is identified by its date. Where a value here disagrees with the Expected column — which is Microsoft’s documentation of the desktop product — we cannot tell you whether the web engine diverges from the desktop one or the documentation is wrong about both, because we do not run desktop Excel.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =COUNTUNIQUE(1,1,2,3,5,8,13) | The inline-value half of the page's own Sample Usage line | #NAME? | 6ProvenanceThe page's Sample Usage prints COUNTUNIQUE(1,1,2,3,5,8,13,A2,B6:B9) and NO result. This case takes the literal head of that sample; 6 is DERIVED from the definition "Counts the number of unique values in a list of specified values and ranges" -- the seven arguments hold six distinct values because 1 appears twice. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405. BATCH PROVENANCE (batch H, the first Sheets/LibreOffice-only batch). Every function in this batch has x == false in docs/data/compat.json: it is a Google Sheets function that Microsoft does not document at all, so this corpus makes NO claim about it in that engine and nothing here is measured against that vendor's documentation. The authority is Google's own support.google.com function page, cited by full URL and by the date it was read -- Google publishes no version number for these pages, so a bare URL dates nothing. WHAT GOOGLE ACTUALLY PRINTS, WHICH IS LESS THAN IT LOOKS: most of these pages carry a 'Sample Usage' block of FORMULAS WITH NO RESULTS. Where a value below is Google's own published output the note says so; where it is derived from the page's stated semantics the note says that instead, and says from which sentence. No value in this batch was taken from a search snippet, a blog or a mirror. LIBREOFFICE: probed on all four pinned builds (24.2.0.3, 24.8.7.2, 25.2.0.3, 25.8.7.3) in five storage spellings -- plain, _xlfn., COM.MICROSOFT., ORG.OPENOFFICE. and _xlfn.ORG.OPENOFFICE. -- and #NAME? under every one of them, so the expected values below describe Google Sheets and the LibreOffice column records absence. |
Mismatch |
| =COUNTUNIQUE(A1:A5) | The page's other Sample Usage shape: a single range with repeated values | #NAME? | 3ProvenanceDerived from the same definition; the page publishes no results and populates none of the cells its samples name. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405. |
Mismatch |
| =COUNTUNIQUE(1,1,2,3,5,8,13,A2,B6:B9) | The page's Sample Usage line in full: literals, a cell and a range together | #NAME? | 9ProvenanceThe page's own sample formula, with the cells it names populated by this corpus (Google leaves them unset). The union of {1,2,3,5,8,13}, {2} and {21,34,55,1} has nine distinct members -- A2's 2 and B9's 1 are both already present, which is the point of choosing them. DERIVED, not published. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405. |
Mismatch |
| =COUNTUNIQUE(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35) | Thirty-five arguments, past the limit the page says is only nominal | #NAME? | 35ProvenanceDERIVED FROM THE PAGE'S ONE NOTE, which is the only substantive claim it makes: "Although COUNTUNIQUE is specified as taking a maximum of 30 arguments, Google Sheets supports an arbitrary number of arguments for this function." Thirty-five distinct arguments therefore must count 35. Without that Note the same call would be a documented error rather than a documented value. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405. |
Mismatch |
Google Sheets (executed 2026-09-01 via Drive import)
Google Sheets is a rolling service with no pinnable version, so this run is identified by its date. The corpus was imported to Drive as .xlsx, recalculated by Sheets, and exported back for readback.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =COUNTUNIQUE(1,1,2,3,5,8,13) | The inline-value half of the page's own Sample Usage line | 6 | 6ProvenanceThe page's Sample Usage prints COUNTUNIQUE(1,1,2,3,5,8,13,A2,B6:B9) and NO result. This case takes the literal head of that sample; 6 is DERIVED from the definition "Counts the number of unique values in a list of specified values and ranges" -- the seven arguments hold six distinct values because 1 appears twice. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405. BATCH PROVENANCE (batch H, the first Sheets/LibreOffice-only batch). Every function in this batch has x == false in docs/data/compat.json: it is a Google Sheets function that Microsoft does not document at all, so this corpus makes NO claim about it in that engine and nothing here is measured against that vendor's documentation. The authority is Google's own support.google.com function page, cited by full URL and by the date it was read -- Google publishes no version number for these pages, so a bare URL dates nothing. WHAT GOOGLE ACTUALLY PRINTS, WHICH IS LESS THAN IT LOOKS: most of these pages carry a 'Sample Usage' block of FORMULAS WITH NO RESULTS. Where a value below is Google's own published output the note says so; where it is derived from the page's stated semantics the note says that instead, and says from which sentence. No value in this batch was taken from a search snippet, a blog or a mirror. LIBREOFFICE: probed on all four pinned builds (24.2.0.3, 24.8.7.2, 25.2.0.3, 25.8.7.3) in five storage spellings -- plain, _xlfn., COM.MICROSOFT., ORG.OPENOFFICE. and _xlfn.ORG.OPENOFFICE. -- and #NAME? under every one of them, so the expected values below describe Google Sheets and the LibreOffice column records absence. |
Matched |
| =COUNTUNIQUE(A1:A5) | The page's other Sample Usage shape: a single range with repeated values | 3 | 3ProvenanceDerived from the same definition; the page publishes no results and populates none of the cells its samples name. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405. |
Matched |
| =COUNTUNIQUE(1,1,2,3,5,8,13,A2,B6:B9) | The page's Sample Usage line in full: literals, a cell and a range together | 9 | 9ProvenanceThe page's own sample formula, with the cells it names populated by this corpus (Google leaves them unset). The union of {1,2,3,5,8,13}, {2} and {21,34,55,1} has nine distinct members -- A2's 2 and B9's 1 are both already present, which is the point of choosing them. DERIVED, not published. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405. |
Matched |
| =COUNTUNIQUE(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35) | Thirty-five arguments, past the limit the page says is only nominal | 35 | 35ProvenanceDERIVED FROM THE PAGE'S ONE NOTE, which is the only substantive claim it makes: "Although COUNTUNIQUE is specified as taking a maximum of 30 arguments, Google Sheets supports an arbitrary number of arguments for this function." Thirty-five distinct arguments therefore must count 35. Without that Note the same call would be a documented error rather than a documented value. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405. |
Matched |
LibreOffice Calc 25.8.7.3 (tested 2026-09-01)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =COUNTUNIQUE(1,1,2,3,5,8,13) | The inline-value half of the page's own Sample Usage line | #NAME? | 6ProvenanceThe page's Sample Usage prints COUNTUNIQUE(1,1,2,3,5,8,13,A2,B6:B9) and NO result. This case takes the literal head of that sample; 6 is DERIVED from the definition "Counts the number of unique values in a list of specified values and ranges" -- the seven arguments hold six distinct values because 1 appears twice. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405. BATCH PROVENANCE (batch H, the first Sheets/LibreOffice-only batch). Every function in this batch has x == false in docs/data/compat.json: it is a Google Sheets function that Microsoft does not document at all, so this corpus makes NO claim about it in that engine and nothing here is measured against that vendor's documentation. The authority is Google's own support.google.com function page, cited by full URL and by the date it was read -- Google publishes no version number for these pages, so a bare URL dates nothing. WHAT GOOGLE ACTUALLY PRINTS, WHICH IS LESS THAN IT LOOKS: most of these pages carry a 'Sample Usage' block of FORMULAS WITH NO RESULTS. Where a value below is Google's own published output the note says so; where it is derived from the page's stated semantics the note says that instead, and says from which sentence. No value in this batch was taken from a search snippet, a blog or a mirror. LIBREOFFICE: probed on all four pinned builds (24.2.0.3, 24.8.7.2, 25.2.0.3, 25.8.7.3) in five storage spellings -- plain, _xlfn., COM.MICROSOFT., ORG.OPENOFFICE. and _xlfn.ORG.OPENOFFICE. -- and #NAME? under every one of them, so the expected values below describe Google Sheets and the LibreOffice column records absence. |
Mismatch |
| =COUNTUNIQUE(A1:A5) | The page's other Sample Usage shape: a single range with repeated values | #NAME? | 3ProvenanceDerived from the same definition; the page publishes no results and populates none of the cells its samples name. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405. |
Mismatch |
| =COUNTUNIQUE(1,1,2,3,5,8,13,A2,B6:B9) | The page's Sample Usage line in full: literals, a cell and a range together | #NAME? | 9ProvenanceThe page's own sample formula, with the cells it names populated by this corpus (Google leaves them unset). The union of {1,2,3,5,8,13}, {2} and {21,34,55,1} has nine distinct members -- A2's 2 and B9's 1 are both already present, which is the point of choosing them. DERIVED, not published. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405. |
Mismatch |
| =COUNTUNIQUE(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35) | Thirty-five arguments, past the limit the page says is only nominal | #NAME? | 35ProvenanceDERIVED FROM THE PAGE'S ONE NOTE, which is the only substantive claim it makes: "Although COUNTUNIQUE is specified as taking a maximum of 30 arguments, Google Sheets supports an arbitrary number of arguments for this function." Thirty-five distinct arguments therefore must count 35. Without that Note the same call would be a documented error rather than a documented value. Google's COUNTUNIQUE page, read live on 2026-08-31 at https://support.google.com/docs/answer/3093405. |
Mismatch |
Docs & syntax
- Google Sheets: official documentation
Related how-to recipes
Where COUNTUNIQUE behaves differently
- Google-only functions: what ports to Excel and LibreOffice, and what does not
Executed: 47 functions Google documents and neither Microsoft nor LibreOffice does, 189 cases, 183 of them #NAME? in LibreOffice on all four pinned builds after five- and nine-spelling probes. QUERY and ARRAYFORMULA do not port; the operator functions do exactly; REGEXMATCH, REGEXTEST and REGEX are three different functions with three regex flavours.