Microsoft KB Archive/61090

= How to use cell references and defined names in criteria in Excel =

Article ID: 61090

Article Last Modified on 11/23/2006

-

APPLIES TO


 * Microsoft Office Excel 2007
 * Microsoft Office Excel 2003
 * Microsoft Excel 2002 Standard Edition
 * Microsoft Excel 2000 Standard Edition
 * Microsoft Excel 97 Standard Edition

-



This article was previously published under Q61090



SUMMARY
In Microsoft Excel, criteria can be set by typing the exact value that is desired in the criteria cells, or by using cell references or defined names.

To use the value of cell D1 as the criteria, type the following formula in the criteria cell:   =$D$1 To use the value of a defined name, such as &quot;CritVar&quot;, type the following formula in the criteria cell:   =CritVar To use the operators, such as less than (<) and greater than (>), the operator must be concatenated with the formula. For example, to specify a match of greater than the value in cell D1, type the following formula in the criteria cell:   =&quot;>&quot;&$D$1 To specify a match of greater than or equal to a cell defined as &quot;GVAR&quot;, type the following formula in the criteria cell:   =&quot;>=&quot;&GVAR



MORE INFORMATION
Quotation marks must be used. Otherwise, Excel interprets the information as &quot;greater than &quot;$D$1&quot;&quot; where &quot;$D$1&quot; is a text string. The same applies for a defined name.

Additional query words: noupd Excel XL2002 XL2003 XL2000 XL97 XL2007

Keywords: KB61090

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.