Get help

Help center

Guides and answers

Contact support

Write to our team

Sign in to

Workflows

Build processes with your team

Automations

Connect files and automate tasks

One system, four parts

AI agents

Virtual Employees that work 24/7

Automations

Connect files and automate tasks

Workflows

Build processes with your team

Data Space

Trusted data sharing and control

Solutions by department

Finance

Reports, budgets, and reconciliations

Inventory and manufacturing

Stock, orders, and production in one view

HR

Timesheets, attendance, and reviews

Project management

Status and workload across projects

Sales and CRM

Leads and deals kept up to date

Education

Student records and school data

Finance

Turn manual finance work into reports that update themselves.

What Finance teams automate

  • Track payables and receivables
  • Build cash flow statements
  • Compare budget against actuals

Inventory and manufacturing

See stock levels and automate ordering.

What inventory and manufacturing teams automate

  • Track inventory across multiple sites
  • Connect sales, purchasing, and warehouse data
  • Link a barcode scanner to your sheet

HR

Run recruitment, attendance, and OKR tracking from your sheets.

What HR teams automate

  • Track recruitment and onboarding
  • Record team OKRs and results
  • Track check-ins, check-outs, and leave

Project management

Assign tasks and track hours without manual updates.

What project teams automate

  • Assign tasks and track status changes
  • Estimate effort and log hours worked
  • Track milestones across projects

Sales and CRM

Track leads and sales performance with automated reports.

What sales teams automate

  • Track and convert leads
  • Set sales goals and track team metrics
  • Monitor sales KPIs on dashboards

Education

Automate attendance, grades, and school purchasing.

What schools automate

  • Track attendance and notify parents
  • Record and compare class grades
  • Track inventory lent to students and staff

Find a use case

By department

How each team uses Sheetgo

By industry

How each industry uses Sheetgo

By company size

Small, medium-sized, or large

Learn

Blog

Guides and product news

Customer stories

How teams like yours use Sheetgo

Help center

Guides and answers

Why Sheetgo

Compare

How Sheetgo compares with other tools

Security

How we protect your data

Trust center

Our compliance details

Sign in to

Workflows

Build processes with your team

Automations

Connect files and automate tasks

One system, four parts

AI agents

Virtual Employees that work 24/7

Automations

Connect files and automate tasks

Workflows

Build processes with your team

Data Space

Trusted data sharing and control

Solutions by department

Finance

Reports, budgets, and reconciliations

Inventory and manufacturing

Stock, orders, and production in one view

HR

Timesheets, attendance, and reviews

Project management

Status and workload across projects

Sales and CRM

Leads and deals kept up to date

Education

Student records and school data

Find a use case

By department

How each team uses Sheetgo

By industry

How each industry uses Sheetgo

By company size

Small, medium-sized, or large

Get started

Templates

Ready-made workflows to start from

Learn

Blog

Guides and product news

Customer stories

How teams like yours use Sheetgo

Help center

Guides and answers

Why Sheetgo

Compare

How Sheetgo compares with other tools

Security

How we protect your data

Trust center

Our compliance details

Help center

Guides and answers

Contact support

Write to our team

Workflows

Build processes with your team

Automations

Connect files and automate tasks

How to use the IF AND function combination in Excel

The IF function in Excel is extremely useful: it generates different outcomes depending on whether the input meets a certain criteria. But what if you want the input to meet multiple criteria instead of just one? That’s where the AND function comes in. When combined, the IF AND Excel functions create an even more powerful tool!

Syntax

I’ll start off by showing the syntax of a typical IF function:

=IF(logical_test, value_if_true, [value_if_false])
  • logical_expression – an expression or reference to a cell containing an expression that has a logical value such as TRUE or FALSE. The AND function is used here to test multiple expressions
  • value_if_true – the value that the function returns if the logical_expression is TRUE. This can be a number, text, or even another function that returns a value. You can also embed another IF statement in here: this is known as a nested IF
  • value_if_false – the value that the IF function returns if the logical_expression is FALSE. Similar to the value_if_true, this can be a number, text or another function that returns a value. It can also be a nested IF. Note that this is an optional input and if you leave it out you will get a blank value when the expression is FALSE

Now for the AND function:

=AND(logical1, [logical2], …)
  • logical1, logical2, etc. are logical expressions. The function will generate a TRUE result only if all the logical expressions are true

Finally, when you put them together you get:

=IF(AND(logical1, [logical2], …), value_if_true, [value_if_false])
  • When combined, the AND function takes the place of the logical_expression parameter in the IF function
  • All the logical expressions in the AND function must be TRUE in order to get the value_if_true

How to use the IF AND combination

I’ll show a couple examples now in order to fully explain the functions. In this example, I have a list of people and their dietary information. I want to write a function that will tell me whether each person is a vegetarian and has allergies.

I can do this with the formula =IF(AND(D2="Yes",E2="Yes"),"Yes","No").

if and excel 1

The logical expression here is AND(D2=”Yes”,E2=”Yes”). This expression only evaluates as TRUE when both the values in column D (vegetarian) and E (allergies) are Yes. If either of them are No, then the expression is FALSE.

Note that you can use any of the logical operators in your logical expression. The list below shows the options you have.

if and excel logical operators 2

Number between two values

Another way you can use the IF AND Excel function combination is when you want to find a number that’s between two numbers.

For example, if I want to see who is older than 19 but younger than 22, I can use the function =IF(AND(B2>19,B2<22),"Yes","No").

if and excel between two values 3

Here I’ve used two more of the logical operators shown previously (> and <). Using the AND function allows me to quickly set a range for each value by defining the upper and lower limits.

I could also use the >= and <= operators to get the same result, by typing =IF(AND(B2>=20,B2<=21),"Yes","No").

if and excel greater than equal to 4

Tips for using the IF AND function combination in Excel

  • The IF AND combination is a much cleaner alternative to nested IF statements. Sometimes nested IF’s are necessary, but if you can use IF and AND instead, do it!
  • All logical expressions within the AND function must be true, otherwise it will return FALSE
  • If you want to get a TRUE result if any of your logical expressions is true, you can use the OR function instead of AND

You may also like…

Excel INDIRECT function — Excel logo and fx icon above =INDIRECT on a light gray background

Excel INDIRECT function: formula and examples

Use the INDIRECT function Excel provides to turn text into a cell reference. See the syntax and examples with SUM, AVERAGE, ROW, and other sheets.

How to round off numbers in Excel — Excel icon next to .00 rounded to .0

How to round off numbers in Excel with the ROUND function

Learn to round off numbers in Excel with ROUND, ROUNDUP, and ROUNDDOWN, to any number of decimal places or to the nearest whole number.

Excel FILTER function — Excel logo next to a report icon with a red funnel on a blue background

Excel FILTER function and examples

Learn how to use the Excel FILTER function to filter data by text, number, and date, with multiple conditions, and together with UNIQUE and SORT.