New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

SumIf

From: Excel 2007 Essential Training

Video: SumIf

The owners of EatCake have just finished their year-end Inventory, and had everyone put their accounts into a spreadsheet, however, no one did a tally of each Item Type. So now they either print off the pages in the worksheet and count them by hand or they use one of the advanced functions Excel offers to do the work for them. This movie's going to cover a lot of the concepts we've reviewed so far, so you may want to watch it a few times. Open EatCake 18 to follow along. We're going to add up the inventory items for three areas: Pastry, Buttercream and Sugar Free.

SumIf

The owners of EatCake have just finished their year-end Inventory, and had everyone put their accounts into a spreadsheet, however, no one did a tally of each Item Type. So now they either print off the pages in the worksheet and count them by hand or they use one of the advanced functions Excel offers to do the work for them. This movie's going to cover a lot of the concepts we've reviewed so far, so you may want to watch it a few times. Open EatCake 18 to follow along. We're going to add up the inventory items for three areas: Pastry, Buttercream and Sugar Free.

And you'll see that we already have an example here in our Pastry area, it's saying that there are 7 current inventory items under the Pastry item type. Let's just see if that's right. I've got 2 here under Pastry, and if I scroll through the visible area, I see another Pastry with the inventory of 5. The total of those two is 7, so I know in my formula is calculating correctly. Now, let's just take a look at this formula before we go in and learn how to create it up here in the Formula bar.

Basically, we're using the SUMIF function, and we're telling it to take a look at a particular area for a certain type, and then go to a particular column, and add up and everything that you find in that column that matches under this criteria. So how do we create something like this? How do we get the power of the Excel application to work with us? First of all, we start off in the cell where we want the answer to go. And then we go up to the Formulas tab.

Under the Formulas tab, we go to the Function Library, and in the Function Library the SUMIF function is contained under the Math & Trig grouping. So I select that, and I go down until I find SUM formulas, and I select SUMIF. Then I get a dialog box coming up. And this dialog box prompts me to fill in the missing pieces. First of all, it's asking me for a Range. And the range is the area of cells that you want evaluated.

So in Excel, we start with identifying the very first cell we are interested in, which is, in this case, B2. We then tell it to look through a particular section of cells, and so the end of the cell, we want it to look in column B, and we're going to just look at the area on the screen here, so the final row we can see is B25. So we're saying, "Go to the information that's contained in column B, starting at row 2 an ending at row 25." Then we're going to identify the criteria, and the criteria is the condition, or criteria in the form of a number, expression, or text that defines the cells that will be added together.

So basically it's saying, "What do you want me to find in column B?" Well in this case, I want to find the word buttercream, so I type in buttercream, making sure that my spelling is correct. It's not case sensitive. But the spelling, it will look for to be an exact match. Finally, I identify what column I want to find the information that I have to add up. I could add up current cost, but that's not what I'm interested in. I'm interested in the inventory, and the inventory is included in column E. So, sum up anything that's in E2 to E25.

Again, we're looking at the same area, the same range, in just a different column this time. It gives me an idea of what my answer's going to be. Here it's coming up to a 3, and then let's set this particular function in place and see if that makes sense. So it's telling me that it's looked through the range and it's come up with the number 3. So if I look for buttercream, I find 1 buttercream, and I see I have 3 in the inventory. Go back through my list. It's not finding this blue buttercream because it's not an exact match, and I scroll through and I see I have no other buttercream, So the formula is correct.

Once you feel comfortable working with Excel functions, you can save yourself hours of time doing mathematical calculations, and create some pretty powerful analysis. Now speaking of powerful, let's explore the Lookup function in our next movie.

Show transcript

This video is part of

Image for Excel 2007 Essential Training
Excel 2007 Essential Training

85 video lessons · 76853 viewers

Lorna Daly
Author

 
Expand all | Collapse all
  1. 36s
    1. Welcome
      36s
  2. 10m 57s
    1. Why use a spreadsheet?
      1m 44s
    2. What's changed in Excel 2007?
      5m 37s
    3. The Ribbon
      2m 9s
    4. The Microsoft Office Button
      1m 27s
  3. 12m 10s
    1. What's on the Ribbon?
      1m 56s
    2. Making your way around the Ribbon
      2m 12s
    3. Customizing the Ribbon
      3m 8s
    4. Customizing the Microsoft Office Button
      4m 54s
  4. 16m 15s
    1. Opening old worksheets
      2m 24s
    2. Adding and deleting worksheets
      3m 18s
    3. Inserting and deleting cells
      6m 53s
    4. Freezing areas of a worksheet
      3m 40s
  5. 20m 51s
    1. Width and height
      7m 25s
    2. Numeric formats
      2m 21s
    3. Alignment of data
      3m 19s
    4. Playing with fonts
      2m 58s
    5. AutoFilter
      2m 21s
    6. Formatting as a table
      2m 27s
  6. 21m 31s
    1. Removing duplicates
      6m 1s
    2. What is Conditional Formatting?
      2m 21s
    3. Working with Conditional Formatting
      2m 14s
    4. Managing Conditional Formatting rule preferences
      2m 39s
    5. Converting text to columns
      4m 35s
    6. Data validation
      3m 41s
  7. 10m 56s
    1. Templates
      3m 45s
    2. Styles
      3m 35s
    3. AutoFormat
      3m 36s
  8. 12m 16s
    1. Excel lists have now become tables
      2m 34s
    2. Converting text to columns
      3m 11s
    3. Sorting and Grouping
      5m 9s
    4. Creating a summary report
      1m 22s
  9. 6m 44s
    1. Proofing your work
      3m 31s
    2. Providing comments on worksheets
      3m 13s
  10. 11m 43s
    1. Protecting and sharing a worksheet
      3m 57s
    2. Allowing others to edit ranges
      4m 3s
    3. Track Changes
      3m 43s
  11. 22m 43s
    1. Preparing to print
      2m 31s
    2. Print Preview
      3m 33s
    3. The Page Layout Tab
      3m 56s
    4. Page Breaks
      4m 36s
    5. The Page Layout View
      3m 54s
    6. Headers and Footers
      4m 13s
  12. 22m 34s
    1. Adding themes to your worksheet
      2m 53s
    2. Page setup options
      8m 0s
    3. Scale to Fit
      2m 26s
    4. Worksheet options
      5m 29s
    5. Inserting images
      3m 46s
  13. 3m 50s
    1. Using templates
      3m 50s
  14. 17m 48s
    1. Workbook Views
      2m 53s
    2. Hiding and Zooming
      3m 44s
    3. Window Panes
      5m 31s
    4. More screen options
      5m 40s
  15. 8m 16s
    1. Importing from Access
      2m 24s
    2. Using the Import Wizard for text files
      5m 52s
  16. 11m 23s
    1. The Find and Select button
      4m 34s
    2. Find and Replace
      2m 48s
    3. Removing duplicates
      4m 1s
  17. 17m 3s
    1. What are formulas?
      3m 20s
    2. Order of Operations
      2m 50s
    3. Relative and absolute referencing
      4m 54s
    4. The new Formula Tab
      5m 59s
  18. 17m 29s
    1. What are Functions?
      2m 57s
    2. AutoSum
      2m 47s
    3. Minimum
      3m 55s
    4. Trim
      5m 2s
    5. Left
      2m 48s
  19. 19m 51s
    1. Concatenation
      4m 10s
    2. SumIf
      4m 23s
    3. Lookup
      7m 25s
    4. What-If Analysis
      3m 53s
  20. 16m 44s
    1. Why create a chart?
      2m 12s
    2. Creating your chart
      3m 37s
    3. Modifying your chart
      6m 46s
    4. Laying out your chart
      4m 9s
  21. 17m 23s
    1. What are PivotTable reports and PivotChart reports?
      2m 32s
    2. Creating a PivotTable
      4m 47s
    3. Laying out your PivotTable
      2m 30s
    4. Designing your PivotTable
      4m 9s
    5. Creating a PivotChart
      3m 25s
  22. 8m 57s
    1. Why use macros?
      2m 14s
    2. Creating a macro
      4m 31s
    3. Macro security
      2m 12s
  23. 5m 36s
    1. Reviewing a workflow in Excel
      5m 36s
  24. 22s
    1. Conclusion
      22s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold

Are you sure you want to delete this note?

No

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.