• Skip to main content
  • Skip to primary sidebar
  • Home
  • Blog
  • VBA Programming
  • Open-Libre Office
  • Web Stuff
  • Videos
    • VBA Articles
    • LibreOffice And Open Office
  • Excel VBA Glossary
  • About
  • Contact

My Best Stuff Is In The Newsletter

No charge. No spam. Unsubscribe anytime.

Submitting...

What Does Excel Sumif and Sumifs Do?

Excel’s Sumif and Sumifs allows you to query your tabular data for numerical answers to your questions like what was our sales or costs for January last year?

Or in the case of this example here what was the total volume traded on the NYSE for ticker "abev"?

The YouTube video above takes you through a practical example of sumif and sumifs using the tabular data below.

You can get the spreadsheet and all future giveaways when you opt into the yellow newsletter box further down this page.

Sumif Sumifs data range

Sumif takes three arguments, the column range that contains the criteria (in this case column "F"), the criteria ("abev") and finally the range to sum, which for this example is the "Volume" column (Column "D").

Get the spreadsheet used in this YouTube tutorial.

And get notified when new tutorials are created!

Submitting…

In this example I have chosen the ranges to extend from row 4 to row 65000 to allow for expansion of the data range.

There are however more clever ways to do this using the counta function to create a dynamic range which is explained in the youtube tutorial on this page.

What if you have more than one criteria?

When you need to query on more than one criteria this is where sumifs (i.e. sumif with an "s" at the end) steps in and takes over.

Sumifs accepts a minimum of three arguments when you have one set of criteria, don’t get caught out here because the order of the arguments change for sumifs compared to sumif.

Instead of starting off with the criteria range, the first argument is now the range to be summed (i.e. the "Volume") column, followed by two arguments the criteria range and the criteria.

You can continue to add extra arguments in pairs – criteria range and criteria, this example is using sumifs to find the total volume traded on the NYSE for security "abev" on wednesdays.

The great thing about sumif, sumifs and the dsum functions are that you can easily verify the results of the function by performing an autofilter on the data and summing up your value column using the subtotal column.

In the above instance the sumif function is filtered on "abev", "nyse" and "Wednesday" and gives the value 87,509,400 in Cell B7.

This result of 87,509,400 can be verified with the autofilter by selecting the same criteria in the autofilter as used by the SumIfs function, the subtotal function in cell D1 of the data sheet above confirms the results of the SumIfs function.

This can be useful if you need to "sample test" some of your numbers.

The attached youtube tutorial which lasts about 15 minutes goes into all of the above and more in detail.

Download the spreadsheet from this YouTube example

And get notified when new tutorials are created!

Submitting…

Filed Under: Excel

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Free Training Videos

Make VBA Listbox Work as Database Grid

Image

Ulitmate Excel VBA Advanced Filter Tutorial

Click video and press f for full screen or watch on YouTube

Dynamically Link Images to LibreOffice Base Form

Click video and press f for full screen or watch on YouTube

Create Database with LibreOffice Base

Click video and press f for full screen or watch on YouTube

Create VBA Form In Excel

Click video and press f for full screen or watch on YouTube

Affiliate Disclamer

We hope you love the products we recommend! Just so you know, we may collect a share of sales or other compensation from the links on this page.
Thank you if you use our links, we really appreciate it!

Terms Of Service | Privacy Statement | Copyright © 2024 BusinessProgrammer.com.