Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Creating Business Logic | Data Foundations and Excel Essentials
Excel Formulas

Creating Business Logic

Swipe to show menu

The dataset now calculates Revenue, but raw numbers alone do not provide much business insight. In this chapter, classify each sale into performance tiers using logical formulas.

Comparison Operators

Excel uses comparison operators to evaluate conditions.

  • >: greater than;
  • <: less than;
  • >=: greater than or equal to;
  • <=: less than or equal to;
  • =: equal to;
  • <>: not equal to.

These conditions always return either TRUE or FALSE.

IF Function Structure

=IF(logical_test, value_if_true, value_if_false)

Nested IF Structure

=IF(H2>=7000,"High",IF(H2>=3000,"Medium","Low"))

Excel evaluates conditions from left to right.

  • First checks High;
  • Then checks Medium;
  • Otherwise returns Low.

Logical Functions

  • AND: returns TRUE only if all conditions are true;
  • OR: returns TRUE if at least one condition is true.
Step 1 Create the Performance Column
expand arrow

Go to the Sales_Data sheet.

Add a new column named:

Performance Tier

Place the column in I.

Step 2 Build the First Tier System
expand arrow

Inside I2, type:

=IF(H2>=7000,"High",IF(H2>=3000,"Medium","Low"))
  • >=7000: High;
  • >=3000: Medium;
  • Otherwise: Low.

Press Enter.

Step 3 Test Evaluation Order
expand arrow

Review several rows in the dataset and observe how Excel evaluates the formula from left to right.

The first matching condition stops the calculation.

Step 4 Add an AND Condition
expand arrow

Replace the previous formula with:

=IF(AND(H2>=7000,G2>5),"High",IF(H2>=3000,"Medium","Low"))

For a row to qualify as High, both conditions must be true:

  • Revenue must be greater than or equal to 7000;
  • Units must be greater than 5.
Step 5 Test the Updated Logic
expand arrow

Compare rows that were previously marked as High.

Notice that some rows now move to Medium because both conditions are no longer satisfied.

Step 6 Understand OR Logic
expand arrow

AND creates stricter rules because every condition must be true.

OR creates looser rules because only one condition must be true.

1. Why does the order of conditions in a nested IF matter?

2. What does the AND function return?

3. What change occurs when replacing AND with OR in the formula?

question mark

Why does the order of conditions in a nested IF matter?

Select the correct answer

question mark

What does the AND function return?

Select the correct answer

question mark

What change occurs when replacing AND with OR in the formula?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 3

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Section 1. Chapter 3
some-alt