Pinterest Pixel

How to Create Nested IF Formula with Copilot

John Michaloudis
Writing multiple IF functions in one formula can make it difficult to read and manage.
You can use nested IF formulas to check multiple conditions in Excel.

You can describe the rules in plain language and ask Copilot to suggest the appropriate formula.

In this article, you will learn how to create nested IF formula with Copilot in Excel.

Writing multiple IF functions in one formula can make it difficult to read and manage. You can use nested IF formulas to check multiple conditions in Excel. You can describe the rules in plain language and ask Copilot to suggest the appropriate formula. In this article, you will learn how to create nested IF formula with Copilot in Excel.

Key Takeaways:

  • Nested IF formula help you check multiple conditions in Excel.
  • Copilot can generate nested IF formulas using simple text prompts.
  • You can assign grades, categories, or labels based on multiple criteria.
  • Convert your data into an Excel Table before using Copilot.
  • Always review and test the suggested formula before applying it to your data.

 

What is a Nested IF Formula?

A nested IF is an IF function placed inside another IF. A single IF can only choose between two results. Nesting lets one formula choose between three or more. For example, suppose you have a student marksheet and want to assign grades based on students’ scores.

You can use the following conditions:

  • Marks greater than or equal to 90: Grade A
  • Marks greater than or equal to 75: Grade B
  • Marks greater than or equal to 60: Grade C
  • Marks below 60: Grade D

Instead of creating separate formulas for each condition, you can use a nested IF formula.

=IF(B2>=90,”A”,IF(B2>=75,”B”,IF(B2>=60,”C”,”D”)))

Nested IF Formula with Copilot

 

How to Create Nested IF Formula with Copilot

Step-by-Step Guide

Suppose you have a list of scores obtained by students in a class, and you want to assign them grades using the nested IF formula.

STEP 1: Open your Excel workbook.

Nested IF Formula with Copilot

STEP 2: Press Ctrl + T to convert the data into a table.

Nested IF Formula with Copilot

STEP 3: Click on the Copilot button at the lower-right corner of the Excel workbook.

Nested IF Formula with Copilot

STEP 4: In the Copilot pane, enter the prompt:

“Create a nested IF formula to assign grades based on the Marks column. If marks are 90 or above, return A. If marks are 75 or above, return B. If marks are 60 or above, return C. Otherwise, return D. Add the formula in a new Grade column.”

Nested IF Formula with Copilot

STEP 5: Copilot will analyse the data and suggest a nested IF formula.

STEP 6: Review the suggested formula and press Done.

Nested IF Formula with Copilot

More Examples

  • Categorize sales – Create a nested IF formula that labels sales above 20000 as High, sales of 10000 or more as Medium, and anything below 10000 as Low.

Nested IF Formula with Copilot

  • Calculate bonuses – Create a nested IF formula that returns a 10% bonus when sales are 50000 or more, 5% when sales are 30000 or more, and 0% otherwise.

Nested IF Formula with Copilot

  • Classify stock levels – Create a nested IF formula that returns “Out of Stock” when quantity is 0, “Low Stock” when quantity is 10 or less, and “In Stock” otherwise.

Nested IF Formula with Copilot

IFS formula – Alternative to Nested IF

You can also use the IFS function to check multiple conditions without nesting IF functions. It checks multiple conditions and returns the result corresponding to the first condition that evaluates to TRUE. Unlike nested IF formula, you do not need to place one IF function inside another.

For example, you can use the following IFS formula to assign grades based on students’ marks:

=IFS(B2>=90,”A”,B2>=75,”B”,B2>=60,”C”,B2<60,”D”)

You can also ask Copilot to create this formula for you.

“Create an IFS formula to assign grades based on the Marks column. If marks are 90 or above, return A. If marks are 75 or above, return B. If marks are 60 or above, return C. Otherwise, return D. Add the formula in a new Grade column.”

Nested IF Formula with Copilot

Check a few results to confirm that the grades are correct.

 

Tips & Tricks

  • Make sure to convert the data into a table.
  • Use clear column headings to help Copilot identify the data correctly.
  • Mention the criteria properly in the Copilot prompt.
  • Use terms such as greater than, less than, and equal to when describing numerical conditions.
  • Check the ranges, criteria, and calculations before using the result.

 

FAQs

1. What is a nested IF formula in Excel?

A nested IF formula uses one IF function inside another to check multiple conditions and return different results.

2. How to create nested IF formula with Copilot in Excel?

To create a nested IF formula with Copilot, you need to describe the conditions in plain language. Copilot will suggest a formula based on the data and conditions provided. You can also ask Copilot to modify the formula if required.

3. How many IF functions can you nest in Excel?

Excel supports up to 64 levels of nested IF functions in a formula.

4. Can Copilot explain an existing nested IF formula?

Yes. You can ask Copilot to explain the formula and describe what each condition does.

5. What is the alternative to nested IF formulas in Excel?

You can use the IFS function when you need to check multiple conditions. It makes formulas easier to read because you do not need to nest multiple IF functions.

If you like this Excel tip, please share it


Founder & Chief Inspirational Officer

at

John Michaloudis is a former accountant and finance analyst at General Electric, a Microsoft MVP since 2020, an Amazon #1 bestselling author of 4 Microsoft Excel books and teacher of Microsoft Excel & Office over at his flagship MyExcelOnline Academy Online Course.

See also  Copilot in Excel on iPhone: Features, Uses, and Limitations

Steps To Follow

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...