0Pricing
Excel Formulas Academy · Lesson

Requiring Everything With AND

Return TRUE only when all conditions are met using AND.

Requiring Everything With AND is a free Excel Formulas Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Excel Formulas Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

When One Test Is Not Enough

Sometimes a single condition cannot answer your question. Imagine deciding whether a job applicant qualifies: they need both 5 years of experience and a valid certificate. One condition is not enough on its own.

The AND function lets you bundle several tests together. It returns TRUE only when every condition you give it is true. If even one fails, the whole thing becomes FALSE.

This lesson shows you how to require everything at once, so your spreadsheet only says yes when all the boxes are ticked.

The Shape of AND

The AND function takes a list of logical tests, separated by commas, and checks them all:

  • logical1 the first condition to test
  • logical2 the next condition, and so on

You can pass up to 255 conditions. Each one must be something that evaluates to TRUE or FALSE, like a comparison.

The result is a single TRUE or FALSE for the whole group. Think of it as the word and in plain English: this and that and the other.

=AND(logical1, logical2, ...)

A Simple Two-Condition Test

Suppose cell A2 holds a test score and B2 holds an attendance percentage. A student passes only if they scored at least 60 and attended at least 80% of classes.

The formula below checks both conditions. If the score is 72 and attendance is 90, both tests are true, so the result is TRUE. If attendance were only 70, the second test fails and the whole formula returns FALSE.

=AND(A2>=60, B2>=80)

Reading the Result

By itself, AND just shows the word TRUE or FALSE in the cell. That is useful, but often you want a friendlier answer.

The key idea: AND produces a single logical value. Walk through it mentally, one test at a time. The moment any test is false, you can stop, because the answer is already FALSE.

  • All true to all true to TRUE
  • Any one false to FALSE

Next we will feed that result into IF to show real words.

Putting AND Inside IF

The real power appears when you nest AND inside an IF. The IF function takes a test, then what to show when true, then what to show when false.

Here, AND(A2>=60, B2>=80) becomes the test. If both conditions hold, the cell shows Pass. Otherwise it shows Fail.

This pattern, IF wrapping AND, is one of the most common building blocks in real spreadsheets.

=IF(AND(A2>=60, B2>=80), "Pass", "Fail")

A Worked Example: Loan Approval

A bank approves a loan only if the applicant has an income above 50000 and a credit score above 700 and no current default.

With income in C2, credit score in D2, and a defaults count in E2, the formula checks all three at once. Notice you can chain as many conditions as you need inside one AND.

If all three pass, the result is Approved; if any single one fails, it is Declined.

=IF(AND(C2>50000, D2>700, E2=0), "Approved", "Declined")

Combining Numbers and Text

Conditions inside AND do not have to be numbers. You can compare text too. Just remember to wrap text values in straight double quotes.

This example checks that the region in A2 is exactly East and the sales figure in B2 is over 1000.

Text comparisons are not case sensitive in Excel and Sheets, so East, east, and EAST all match here.

=AND(A2="East", B2>1000)

Range Boundaries With AND

A classic use of AND is checking whether a value sits between two limits. Spreadsheets cannot do 0 < A2 < 100 in one piece, so you split it into two tests joined by AND.

The formula below returns TRUE only when the value in A2 is greater than 0 and less than 100, meaning it falls inside that range.

=AND(A2>0, A2<100)

AND Across a Range of Cells

You can also point AND at a whole range. When you do, every cell in that range must satisfy the comparison for the result to be TRUE.

The formula below returns TRUE only when all the values in A2:A10 are greater than zero. If even one cell is zero or negative, the answer is FALSE.

This is a quick way to confirm an entire column meets a rule.

=AND(A2:A10>0)

A Common Mistake

New users sometimes write AND like a sentence, separating conditions with words instead of commas. That will not work.

  • Wrong: =AND(A2>60 and B2>80)
  • Right: =AND(A2>60, B2>80)

Each condition is its own argument, divided by a comma. Also avoid quoting numbers: write A2>60, not A2>"60", since quotes turn 60 into text and can break the comparison.

=AND(A2>60, B2>80)

Why AND Matters

The AND function is the strictest kind of logic: it demands that everything be true. That makes it perfect for gatekeeping decisions like eligibility, approvals, and quality checks where no single failure can be ignored.

Keep these habits in mind:

  • Separate conditions with commas
  • Wrap text values in quotes, not numbers
  • Nest inside IF to show readable words

Now try a quick check to lock it in.

Quick Check

Test your understanding of how the AND function behaves.

Recap: Requiring Everything With AND

You learned that AND returns TRUE only when every condition passes, and FALSE if even one fails.

  • Syntax: =AND(test1, test2, ...) with comma-separated conditions
  • Nest it in IF for readable results: =IF(AND(...), "Yes", "No")
  • Use it for between-range checks like =AND(A2>0, A2<100)
  • Compare text by wrapping values in quotes

Next up: OR, which is satisfied when just one condition is true.

=IF(AND(A2>=60, B2>=80), "Pass", "Fail")

Frequently asked questions

Is the “Requiring Everything With AND” lesson free?

Yes — the full text of “Requiring Everything With AND” is free to read here on the web, and the Excel Formulas Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Excel Formulas Academy course, upgrade to CoddyKit PRO.

What will I learn in “Requiring Everything With AND”?

Return TRUE only when all conditions are met using AND. You practise Excel Formulas Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Excel Formulas Academy?

No prior experience is required. Excel Formulas Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Requiring Everything With AND” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Excel Formulas Academy lesson?

Yes. Every Excel Formulas Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Requiring Everything With AND
  2. Accepting Any Match With OR
  3. Flipping Logic With NOT
  4. Cleaner Branching With IFS
← Back to Excel Formulas Academy