Perezonomics
  • Home
  • Tesla
  • About Me

Excel Tip: Automate with the SUMIF Function

1/6/2018

 
Another Overlooked Function More People Should Take a Look at
Picture
​One Excel function that I’m surprised more people don’t use more often is the SUMIF. It’s a fairly simple function that even people working on uncomplicated spreadsheets may often have an occasion to use.
​The purpose of the SUMIF is to allow you to create totals without sorting your main data table. I used to work with data tables at the retail giant Cabela’s that ran well over a hundred thousand rows.  Every time I ran a fresh data dump, I wanted some quick diagnostic totals by category to quickly gauge how things had changed.
 
Sure, I could create a pivot table or use the SUBTOTAL function, but there can be problems with both of those solutions. First, the rows in a pivot table may move up or down depending on what data is present. This can ruin formulas elsewhere in the spreadsheet. As for the SUBTOTAL function you might use to sort your data in the Data menu option, that will work, but it has to be done fresh every time. A fresh data dump will erase all of your previous subtotals.
 
Using the SUMIF function allows you to anchor values that won’t move up or down like in a pivot table. It will also update itself automatically whenever you import fresh data.
 
For instance, let’s say that your manufacturing plant had a list of inventory on hand in one big table. If you wanted the total inventory by product line, you don’t want to have to sort the table by product line and manually add SUM formulas for each section. Besides being time consuming, the sum ranges would change every time the list was updated, forcing you to redo all your formulas.
 
Setting up SUMIF formulas would be a one-time job that you wouldn’t have to update every time the main table was refreshed. It’s not a complicated formula as far as Excel goes. There are three main parts and the graphic below describes each one. 
Picture
​To show you how this would look in a simple example. I created a scenario where there are twenty-eight inventory item numbers in a table but only three product lines. If I want to see the total inventory by product line, I would do the following:
Picture
Each week or month I could copy fresh data into my green table and the product line totals up above would automatically update themselves. Notice that even though I have only 28 item numbers, my range goes down to row 939. This allows for future growth. If I set my range only down to row 43 and we add 10 new item numbers, those new items would get left off of my totals if I didn’t remember to update the range. So it’s always good to leave some room for growth.
 
In my summary table, I have three product lines. These totals can be linked as source data in other spreadsheets if need be. What would happen if I was using a pivot table and there was no Enerflex inventory in a week? The pivot table would move the Primo product line up one row, where Enerflex used to be. This could be a potential problem if the product line totals feed into other formulas.
 
This is just one specific example of how SUMIF can allow you to automate some recurring reporting that you might do. However, anyone who works with large data tables on a regular basis would find many uses in the course of their daily work. If there’s one thing that data workers do a lot of, it is summarizing totals by some kind of criteria.
 
Related: Make Your Vlookup DOUBLE Variable
 
Now available in iBooks —> The Tesla Bubble
​
Picture

Comments are closed.

    Robert Perez

    Manufacturing and distribution analysis since 1993.

    Picture
    E-Mail Me

    RSS Feed

    Perezonomics is available in Apple News

    Archives

    October 2024
    September 2024
    May 2024
    April 2024
    March 2024
    February 2024
    January 2024
    December 2023
    November 2023
    October 2023
    September 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    February 2020
    January 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014
    November 2014

Web Hosting by iPage