Check if a number is greater than or less than another number

Microsoft Office Excel 2003

  1. Create a blank workbook or worksheet.
  2. Select the example in the Help topic. Do not select the row or column headers.

    Selecting an example from Help

    Selecting an example from Help

  3. Press CTRL+C.
  4. In the worksheet, select cell A1, and press CTRL+V.
  5. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Tools menu, point to Formula Auditing, and then click Formula Auditing Mode.
 
1
2
3
4
A
Data
15,000
9,000
8,000
Formula Description (Result)
=A2>A3 Is A2 greater than number in A3? (TRUE)
=IF(A3<=A4, "OK","Not OK") Is A3 less than or equal to the number in A4? (Not OK)

Functions details

IF