Microsoft KB Archive/44172

{| = Excel: Extracting Numbers Entered as Text in a Database =
 * width="100%"|

Last reviewed: October 31, 1994

Article ID: Q44172

SUMMARY
You must use computed criteria when referring to numbers that have been input into a Microsoft Excel database as text.

For example, if you have A1:A5 below defined as a database, defining B1:B2 as the criteria will locate the number &quot;3&quot; in cell A4.

+---+-++                |   |    A    |     B      | +---+-++                | 1 | TextNum | ComputeNum | +---+-++                | 2 |  =&quot;1&quot;   |  =A2=&quot;3&quot;   | +---+-++                | 3 |  =&quot;2&quot;   |            | +---+-++                | 4 |  =&quot;3&quot;   |            | +---+-++                | 5 |  =&quot;4&quot;   |            | +---+-++

MORE INFORMATION
As with any computed criteria, the field name in the criteria must be different from any of the field names specified in the database. It is helpful to use a name that is related to the database field (in this case, ComputeNum).

For more information on setting computed criteria, see &quot;Entering Computed Criteria&quot; on pages 374-375 in &quot;Microsoft Excel User's Guide&quot; version 3.0 manual. If you are using Excel 2.20, see &quot;Using Computed Criteria&quot; on pages 171-173 of the &quot;Microsoft Excel Reference&quot; version 2.2 manual.

KBSubcategory: kbother KBSubcategory:
 * }