fxExcelReps
PRO

You've used your 3 free functions

To practise AND and every other function, get a PRO subscription.

  • Unlimited access to every function
  • New functions and exercises every month
  • Every mistake explained + full solutions

Your free functions — you can always come back to these:

← All functions

How to use AND in Excel

AND returns TRUE only when all of its conditions are true. On its own it shows TRUE/FALSE; inside IF it lets you test several requirements at once.

Syntax

=AND(logical1, [logical2], ...)

logical1The first condition.
[logical2], …More conditions — up to 255.

Examples

=AND(B2>=10000, C2>=2)Sales target met and at least 2 years of service.
=IF(AND(B2>=18, B2<=65), "Eligible", "Not eligible")Age within a range.
=AND(A2<>"", B2<>"")Both fields filled in.

AND inside IF: every condition must be true

On its own AND returns TRUE or FALSE. Inside IF it decides which result to show. Each condition is a full comparison, separated by commas.

=IF(AND(B2>=25000, C2>=650), "Approve", "Review")Approve only when income and credit score both pass.
=IF(AND(D2>=DATE(2026,1,1), D2<=DATE(2026,12,31)), "2026", "")Marks the dates that fall inside 2026.

Check that a row is complete

Before a report goes out, check that nothing is missing. <>"" means "not empty".

=AND(A2<>"", B2<>"", C2<>"", D2<>"")TRUE only when all four fields are filled in.
=IF(AND(A2<>"", D2>0), "Ready", "Incomplete")A status column you can filter on.

AND with OR: combine the rules

Real rules mix both: this region and (this product or that one). Put the OR inside the AND.

=AND(B2="North", OR(C2="Loan", C2="Mortgage"))North region, and either a loan or a mortgage.

Common mistakes

Writing 10 < x < 20
Excel doesn't understand chained comparisons. Write AND(A2>10, A2<20).
Mixing up AND and OR
AND = every condition, OR = at least one.

Frequently asked questions

How do I write "between" in Excel?

Not as 10<B2<20, which Excel reads differently. Use AND with two comparisons: =AND(B2>=10, B2<=20).

How many conditions can AND take?

Up to 255. If you have more than a handful, COUNTIFS or a helper column is usually easier to read.

What does AND return for an empty cell?

A blank cell counts as 0 in a comparison, so =AND(B2>=0) is TRUE for a blank B2. Add B2<>"" when blanks shouldn't pass.

What's the difference between AND and OR?

AND is TRUE only when all conditions are true. OR is TRUE when at least one is.

Available in: All versions of Excel, Excel for the web, Google Sheets

Related functions

ORNOTIFCOUNTIFS