Pinterest Pixel

How to Create SUMIFS and COUNTIFS Formula with Copilot

John Michaloudis
If you want to calculate the sum or count the rows that meet certain criteria, you can use the SUMIFS and COUNTIFS formulas.
With Copilot, you do not need to memorize the formula syntax or manually select the columns.

In this article, you will learn how to create SUMIFS and COUNTIFS formula with Copilot in Excel.

If you want to calculate the sum or count the rows that meet certain criteria, you can use the SUMIFS and COUNTIFS formulas. With Copilot, you do not need to memorize the formula syntax or manually select the columns. In this article, you will learn how to create SUMIFS and COUNTIFS formula with Copilot in Excel.

Key Takeaways:

  • SUMIFS adds values that meet multiple conditions in a dataset.
  • COUNTIFS counts records that match multiple criteria.
  • Copilot can generate SUMIFS and COUNTIFS formulas using simple prompts.
  • Convert your dataset into an Excel Table and use clear column headings.
  • Always review the generated formulas to verify the ranges and criteria.

 

Introduction to SUMIFS and COUNTIFS Formulas

SUMIFS Formula

The SUMIFS function in Excel is used to add values from cells that meet multiple conditions. Instead of checking each row manually, you can use SUMIFS to calculate the total based on multiple conditions. The syntax of this formula is:

=SUMIFS(sum_range,criteria_range1,criteria1,criteria_range2,criteria2…)

SUMIFS and COUNTIFS formulas with Copilot

  • Sum_Range (required) – The range of cells to sum.
  • Criteria_Range1 (required) – The range that is tested using Criteria1.
  • Criteria1 (required) – The criteria that define which cells in Criteria_range1 will be added.
  • Criteria_Range2, Criteria2, … (optional) – Additional ranges and their associated criteria.

COUNTIFS Formula

The COUNTIFS formula is used to count cells that match two or more conditions.

=COUNTIFS(range1, criteria1,[range2], [criteria2],…)

SUMIFS and COUNTIFS formulas with Copilot

 

How to Create a SUMIFS Formula with Copilot

Suppose you have a sales dataset and want to calculate total sales for the East region for laptops.

SUMIFS and COUNTIFS formula with Copilot

Follow these steps to calculate the total sales:

STEP 1: Open your Excel workbook.

SUMIFS and COUNTIFS formula with Copilot

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

SUMIFS and COUNTIFS formulas with Copilot

STEP 3: Click on the Copilot button.

SUMIFS and COUNTIFS formulas with Copilot

STEP 4: Enter the following prompt:

“Create a SUMIFS formula to calculate the total Sales Amount where Region is East and Product is Laptop. Use the Sales Amount column as the sum range.”

SUMIFS and COUNTIFS formulas with Copilot

STEP 5: Copilot will check the column headings and suggest a SUMIFS formula using the specified conditions.

SUMIFS and COUNTIFS formulas with Copilot

Review the formula and press Done.

 

How to Create a COUNTIFS Formula with Copilot

Suppose you have a sales dataset and want to count the sales records of laptops in the East region. Follow these steps to count the matching sales records:

STEP 1: Open your Excel workbook.

SUMIFS and COUNTIFS formula with Copilot

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

SUMIFS and COUNTIFS formulas with Copilot

STEP 3: Click on the Copilot button.

SUMIFS and COUNTIFS formulas with Copilot

STEP 4: Enter the following prompt:

“Create a COUNTIFS formula to count the sales records where Region is East and Product is Laptop.”

SUMIFS and COUNTIFS formulas with Copilot

STEP 5: Copilot will check the column headings and suggest a COUNTIFS formula to count the matching records.

SUMIFS and COUNTIFS formulas with Copilot

Review the formula and press Done.

 

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. Can Copilot create SUMIFS formulas in Excel?

Yes. You can provide the conditions you want to apply in the Copilot prompt, and it will create the SUMIFS formula in Excel.

2. Can Copilot create COUNTIFS formulas in Excel?

Yes. You can ask Copilot to create COUNTIFS formulas to count records that meet multiple conditions.

3. Can Copilot create SUMIFS formulas with multiple criteria?

Yes. You can specify multiple conditions, such as region, product, salesperson, or sales amount, in your prompt.

4. Do I need to convert my data into an Excel Table before using Copilot?

Converting your data into an Excel Table helps Copilot identify column headings and data ranges more easily.

5. Can I modify a SUMIFS or COUNTIFS formula generated by Copilot?

Yes. You can ask Copilot to add new conditions, change existing criteria, or update the formula.

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 + Python in Excel: The Ultimate Beginner's Guide

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...