Checking Another Application
The cases on these pages work as a quick test set for any spreadsheet application or engine that claims Excel compatibility. Each row is a formula, the cells it needs, and the value captured from Excel under the selected profile. An application that returns something else recalculates that workbook differently from Excel.
Running the cases
- Choose the profile. The Profile list above the table switches the Excel column to the values captured from that Excel: the Mac builds in 14 locales and Windows in Japanese. Set the application to the same locale, and pick the platform it claims to follow; under the Japanese locale, a note under a value shows where the other platform answers differently. Windows in other locales is not offered, because those profiles are estimated rather than captured. A row marked not captured has no Excel value for that profile.
- Write the formulas as a file stores them. The formulas use English function names,
.as the decimal separator and,between arguments, as in an.xlsxfile. An application that takes localized names in its formula bar needs them entered through a file or its API instead. - Enter the cells. Put each listed cell in a fresh sheet.
""(text)is a zero-length text constant, which is not the same as a blank cell or a formula returning""; an application with no way to store one cannot run that row. - Put the formula in
Z1. The position matters for implicit intersection and spills:=@A1:A5is answered from row 1, and theSEQUENCErow expectsZ2to be occupied. - Compare the stored value, not the display. Read the result through the application's API, or show it with 17 significant digits. Under the default format,
7.1000000000000005and7.1both display as7.1.
What a result means
- A mismatch shows that a workbook relying on that behaviour calculates differently. It does not grade the application as a whole, and some rows (the Japanese era rows, the Windows character-set rows) matter only to workbooks that use them.
- A match covers that one path. The rows inside a group are chosen because neighbouring paths follow different rules, so one passing row does not establish its neighbours.
- The Plausible answer column shows the value a straightforward implementation tends to return. A result equal to it usually means the application applies the textbook rule where Excel applies its own. It is left empty where the selected Excel answers differently from the profile the answer was written for.
The cases
| Formula (Z1) | Cells to enter | Excel | Plausible answer |
|---|---|---|---|
| Numbers | |||
=0.5-0.4-0.1 | — | 0 | -2.78E-17 |
=(0.5-0.4-0.1) | — | -2.7755575615628914E-17 | 0 |
=0.5-0.4-0.1=0 | — | FALSE | TRUE |
=1E15+0.3-1E15 | — | 0 | 0.25 |
=SUM(0.5,-0.4,-0.1) | — | 0 | -2.78E-17 |
=SUMIF(A1:A3,"<>x") | A1: 0.5, A2: -0.4, A3: -0.1 | -2.7755575615628914E-17 | 0 |
=VALUETOTEXT(1234567890123456) | — | "1234567890123450" | "1234567890123456" |
=MROUND(6.05,0.1) | — | 6 | 6.1 |
=MROUND(7.05,0.1) | — | 7.1000000000000005 | 7.1 |
=(-8)^(1/3) | — | -1.9999999999999998 | #NUM! |
=(-8)^(2/3) | — | #NUM! | 4 |
| Dates | |||
=N(DATE(1900,2,29)) | — | 60 | 61 |
=WORKDAY(59,1) | — | 60 | 61 |
=TEXT(0,"yyyy/m/d") | — | "1900/1/0" | "1899/12/31" |
=DATEVALUE("令和元年5月1日") | — | #VALUE! | 43586 |
=DATEVALUE("平成32年4月30日") | — | #VALUE! | — |
=TEXT(43586,"ggge年m月d日") | — | "2019年5月1日" | — |
=TIMEVALUE("12:60") | — | 0.5416666666666666 | #VALUE! |
=COUPPCD(1,DATE(1900,6,15),2,0) | — | 0 | #NUM! |
| Coercion and errors | |||
=COUNTIF(A1:A4,"") | A1: ="", A2: ""(text), A4: apple | 3 | 1 |
=COUNTIF(A1:A4,"=") | A1: ="", A2: ""(text), A4: apple | 1 | 3 |
=IF("TRUE",1,0) | — | 1 | #VALUE! |
=IF(" TRUE ",1,2) | — | #VALUE! | 1 |
=AND(" TRUE ",TRUE) | — | TRUE | #VALUE! |
=SUM("TRUE",1) | — | #VALUE! | 2 |
=TRUE=1 | — | FALSE | TRUE |
=COUNTA(SORT(A1:A3)) | A1: 2, A3: 1 | 3 | 2 |
=VALUE("¥1,234") | — | #VALUE! | — |
=VALUE("23円") | — | #VALUE! | 23 |
=FLOOR("x",1/0) | — | not captured | — |
=GCD(A2:B2) | A2: x, B2: =1/0 | not captured | — |
=GCD(A3:B3) | A3: =1/0, B3: x | not captured | — |
| Text | |||
=MATCH("あ",A1:A3,0) | A1: ア, A2: い, A3: う | 1 | #N/A |
=CODE("髙") | — | 95 | 39641 |
=LENB("â") | — | 1 | 2 |
=COUNTIF(A1:A8,"12*") | A1: 12 Oak Street, A7: 1213 | 1 | 2 |
=ASC("ヴ") | — | "ヴ" | "ヴ" |
=IF("データ"<"データ","LT",IF("データ"="データ","EQ","GT")) | — | not captured | — |
| Lookups and spills | |||
=@A1:A5 | A1: 42 | 42 | #VALUE! |
=@A3:A8 | A3: 30, A4: 40, A5: 50 | #VALUE! | 30 |
=SEQUENCE(3) | Z2: ="" | #SPILL! | 1 |
=MATCH(15,C1:C4,1) | C1: 10, C2: 20, C3: 30, C4: 1 | 1 | — |
=MATCH(15,C:C,1) | C1: 10, C2: 20, C3: 30, C4: 1 | 4 | 1 |
=SUM(ERROR.TYPE(ROW(IF({1;0;1}=1,{5;6;7},NA())))) | — | 13 | #VALUE! |
The same rows run live against Formulon on the area pages, starting from Numbers and rounding.
Going further
The core repository keeps every captured case as JSON under tests/oracle/targets/<profile>/golden/. Each case lists its formula, its setup cells and the expected value, and each file records the Excel build and the comparison tolerance. A harness that reads those files can run the full set against another engine. Oracle testing explains the format and what a golden establishes.
Read next
- How far compatibility goes — the areas these cases come from.
- Locale profiles — which Excel each profile was captured from.