ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Logic
  3. IF Greater Than in Excel (and Greater Than or Equal)

IF Greater Than in Excel (and Greater Than or Equal)

By ExcelReady Team·Updated November 1, 2026·6 min read

The short answer

To test if a value is greater than another in Excel, use > inside IF: =IF(B2>C2,"Above target","Not above"). For greater than or equal to, use >=, which also passes when the two values are the same. You can compare with a number, another cell or a date, and return text, a number or a calculation.

Key takeaways

  • means greater than; >= means greater than or equal to. Never write =>.

  • Use >= when hitting the limit exactly should count as a pass.
  • Compare with another cell, B2>C2, or a fixed cell locked with $, B2>$F$1.
  • For dates, compare with DATE(2026,6,30), not with a date typed as text.
  • Text is always 'greater than' any number in Excel, so numbers stored as text give wrong results.
On this page+
  1. Greater than vs greater than or equal to
  2. How to write an IF greater than formula
  3. How to compare with a fixed number or cell
  4. How to return a number or calculation
  5. How to use IF greater than with dates
  6. The text-versus-number trap
  7. How to count or sum values greater than a number
  8. Practise it

An IF greater than formula in Excel checks whether one value is bigger than another and returns a result for each case: =IF(B2>C2,"Above target","Not above"). Use > for strictly greater than and >= when an equal value should also pass. This guide shows both on a sales table, then covers comparing with a fixed cell, dates and calculations, plus the text-versus-number trap that silently breaks these formulas.

Greater than vs greater than or equal to#

> passes only when the left value is bigger. >= also passes when the two values are the same. The difference only matters at the exact limit, but that's where mistakes get noticed.

OperatorMeaningSales 15,500, target 15,000Sales 15,000, target 15,000Sales 14,500, target 15,000
>greater thanTRUEFALSEFALSE
>=greater than or equal toTRUETRUEFALSE

Always type the > first: >=. Excel rejects => as an invalid formula. The lesson on TRUE, FALSE and comparisons practises all six comparison operators.

How to write an IF greater than formula#

The examples use this sales table in A1:C6:

ABC
1RepSalesTarget
2Jo12,50012,000
3Kai9,80010,000
4Lin15,00015,000
5Mo7,2008,000
6Nora11,3009,500

In D2, compare sales with the target and fill down (Windows: Ctrl+D; Mac: ⌘D):

Excel formula
=IF(B2>C2,"Above target","Not above")

Jo and Nora show Above target. Kai and Mo show Not above. So does Lin, because 15,000 is not greater than 15,000.

If hitting the target exactly should count, switch to >=:

Excel formula
=IF(B2>=C2,"Hit","Missed")

Now Jo, Lin and Nora show Hit. Read the rule you've been given carefully: "more than" means >, while "at least" or "or more" means >=. For the IF basics, see the IF function explained simply or the one-page IF function guide.

How to compare with a fixed number or cell#

To compare with a fixed number, type it straight into the test: =IF(B2>10000,"Big month",""). Numbers don't need quotes.

A better habit is to put the limit in its own cell, say F1, and lock it with dollar signs:

Excel formula
=IF(B2>$F$1,"Big month","")

The $ signs keep F1 fixed as you fill down, while B2 moves to B3, B4 and so on. When the limit changes, you edit one cell instead of every formula. Press F4 on Windows (⌘T on Mac) to add the dollar signs.

Three results instead of two#

Sometimes you need to separate "above", "exactly on" and "below". Nest a second IF so each case gets its own label:

Excel formula
=IF(B2>C2,"Above",IF(B2=C2,"On target","Below"))

Jo and Nora show Above, Lin shows On target, and Kai and Mo show Below. Excel checks the first test, and only if it's FALSE moves on to the second. In Excel 2019 and later you can write the same rule with IFS: =IFS(B2>C2,"Above",B2=C2,"On target",TRUE,"Below").

How to return a number or calculation#

The true and false results can be numbers or formulas. Leave the quotes off.

Excel formula
=IF(B2>C2,(B2-C2)*10%,0)

This pays 10% commission on sales above target. Jo earns (12,500 - 12,000) × 10% = 50. Nora earns (11,300 - 9,500) × 10% = 180. Everyone else gets 0.

A classic version is overtime: if hours in B2 are greater than 40, pay the extra hours at time and a half.

Excel formula
=IF(B2>40,(B2-40)*1.5,0)

For 46 hours, the result is 9 overtime hours. For 38 hours, it's 0. If you prefer a Yes or No flag instead of a number, see IF with Yes or No.

How to use IF greater than with dates#

Excel stores dates as numbers, so > means "later than". Compare with a real date built by DATE, not with a date typed in quotes:

Excel formula
=IF(B2>DATE(2026,6,30),"Second half","First half")

A date of 15 August 2026 returns Second half. If you write B2>"30/06/2026" instead, Excel compares a number with text, and the result is always FALSE, because text counts as greater than any number. For deadlines and overdue checks, see the guide to IF formulas with dates.

The text-versus-number trap#

When Excel compares a number with text, the text always wins: any text is treated as greater than any number. So if sales were imported as text, ="9800">10000 returns TRUE, and the formula gives the wrong answer without any error.

Signs that numbers are stored as text:

  • They sit on the left of the cell instead of the right.
  • A small green triangle appears in the corner of the cell.
  • SUM of the column returns 0.

Fix the data with VALUE in a helper column, =VALUE(B2), or select the column and use Data > Text to Columns > Finish. Blank cells cause the opposite problem: they count as 0, so =IF(B2>0,...) treats an empty cell as "not greater". When the text you're testing is a word, not a number, see IF with text.

How to count or sum values greater than a number#

IF works one row at a time. To count or total all the values above a limit, use COUNTIF or SUMIF with the operator in quotes:

QuestionFormulaResult
How many reps sold more than 10,000?=COUNTIF(B2:B6,">10000")3
Total sales above 10,000=SUMIF(B2:B6,">10000")38,800
How many sold at least 15,000?=COUNTIF(B2:B6,">=15000")1

Notice the different syntax: inside COUNTIF the operator and number go together in quotes. The guide to COUNTIF greater than explains this in detail, including how to use a cell as the limit.

Practise it#

Greater-than tests are the first thing most Excel assessments check, because they show whether you read the rule precisely. Practise TRUE, FALSE and comparisons in a live spreadsheet: you type the formula and it checks it instantly. Then practise the IF function, and see more simple IF then examples to copy.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Did Lin hit the target? Hitting it exactly counts. Click D4 and write an IF that shows Hit if sales in B4 are greater than or equal to the target in C4, otherwise Missed.

fx
ABCDE
1
Rep
Sales
Target
Result
2
Jo
12500
12000
3
Kai
9800
10000
4
Lin
15000
15000
5
Mo
7200
8000
6
Nora
11300
9500
7
8
9

Tip: Use >= so that equal values pass: B4>=C4.

Practise this in a lesson

LessonTRUE, FALSE and comparisonsAsk Excel yes-or-no questions with =, <>, >, <, >= and <=, and get TRUE or FALSE back. The building block of every IF.LessonThe IF functionMake a cell show one result or another depending on a condition, like Pass/Fail or Over/Under budget.Function guideIFLearn Excel's IF function with practical examples: flag budgets, label rows and return blanks. Avoid the classic mistakes and practice live.

Frequently asked questions

How do I write an IF greater than formula in Excel?

+

Use > in the test: =IF(A2>100,"Over","Not over"). The cell shows Over when A2 is more than 100 and Not over otherwise, including when A2 is exactly 100.

How do I write greater than or equal to in Excel?

+

Use >= with no space: =IF(A2>=100,"Pass","Fail"). The order matters: => is not a valid operator and Excel will reject the formula.

How do I check if one cell is greater than another?

+

Compare the two cells directly: =IF(B2>C2,"Higher","Not higher"). To compare every row with one fixed cell, lock it with dollar signs, for example B2>$F$1.

Why does my IF greater than formula give the wrong result?

+

The most common cause is numbers stored as text. Excel treats any text as greater than any number, so "50">100 is TRUE. Convert the cells to numbers with VALUE or Text to Columns.

How do I return a calculation if a value is greater than a limit?

+

Put the calculation in the true argument without quotes: =IF(B2>40,(B2-40)*1.5,0) returns overtime hours at time and a half when hours exceed 40.

Sources

  • IF function - Microsoft Support
  • Calculation operators and precedence in Excel - Microsoft Support
  • DATE function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 1, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. Greater than vs greater than or equal to
  2. How to write an IF greater than formula
  3. How to compare with a fixed number or cell
  4. How to return a number or calculation
  5. How to use IF greater than with dates
  6. The text-versus-number trap
  7. How to count or sum values greater than a number
  8. Practise it

Keep reading

Logic· 6 min read

The Excel IF Function Explained Simply

The Excel IF function checks a condition and returns one value when it's TRUE and another when it's FALSE. The syntax is =IF(logical_test, value_if_true, value_if_false). For example, =IF(B2>=70,"Pass","Fail") shows Pass for a score of 70 or more and Fail for anything lower. Text results go in double quotes.

Logic· 7 min read

IF Then Formula in Excel: Simple Examples to Copy

Excel has no THEN keyword: the IF function's second argument is the "then" part. Write =IF(test, value_if_true, value_if_false), for example =IF(B2>=60,"Pass","Fail"). If the score in B2 is 60 or more, the cell shows Pass; otherwise it shows Fail. Text results go in double quotes, numbers and calculations don't.

Logic· 6 min read

Return Yes or No in Excel With IF

To return Yes or No in Excel, put a test inside IF: =IF(B2>=100,"Yes","No"). If the test is TRUE, the cell shows Yes; if it is FALSE, it shows No. A comparison on its own, like =B2>=100, returns TRUE or FALSE, so IF is what turns that answer into the words Yes and No.

More on logic

  • IF with OR in Excel: Pass When Any Condition Is Met
  • IF With Text in Excel: Check Words and Partial Matches
  • IFERROR in Excel: Hide Errors the Right Way
  • IFERROR With VLOOKUP: Replace #N/A With a Message
  • The Excel IFS Function: Cleaner Than Nested IFs
  • ISBLANK, ISNUMBER and ISTEXT in Excel
All logic articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free