Article ID: 265940 - Last Review: January 27, 2007 - Revision: 2.1

Works 6: Result in Cell Is "ERR" When You Use the Exact(TextValue0,TextValue1) Function

This article was previously published under Q265940

On This Page

Expand all | Collapse all

SYMPTOMS

In Microsoft Works Spreadsheet, when you use the EXACT(TextValue0,TextValue1) function in a worksheet to compare a string of characters to a string of numbers, the result is an ERR in the cell where the result is displayed.

CAUSE

This behavior occurs because the EXACT(TextValue0,TextValue1) function is designed to compare only strings of characters, not numbers.

RESOLUTION

To work around this issue, use one of the following methods:

Method 1

Instead of using the EXACT(TextValue0,TextValue1) function, type the following in a cell where you want to display the result
=IF(A1=B1,1,0)
where A1 and B1 are cells containing the numbers.

The cell displays 1 if cells A1 and B1 contain the same numbers. The cell displays 0 if cells A1 and B1 contain different numbers.

Method 2

Instead of using the EXACT(TextValue0,TextValue1) function, type the following in a cell where you want to display the result
=EXACT(STRING(A1,0),STRING(B1,0))
where A1 and B1 are cells containing the numbers.

The cell displays 1 if cells A1 and B1 contain the same numbers. The cell displays 0 if cells A1 and B1 contain different numbers.

MORE INFORMATION

NOTE: When you use the EXACT() function, the cell displaying the result displays ERR if one or both of the cells is empty.

To use the EXACT(TextValue0,TextValue1) function, click Easy Calc on the Tools menu, and then click the All category. Functions are listed in the Choose a function box.

APPLIES TO
  • Microsoft Works 6.0
  • Microsoft Works Suite 2001
Keywords: 
kbaddin kbnofix kbprb KB265940
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations

 

Related Support Centers