In this video of the Excel 2010 Tutorial series, School of Technology Program Coordinator, Justin Denton, describes the countif function in Microsoft Excel 2010. This tutorial video is a great beginning step to your courses in the School of Technology program at Rasmussen College.
We're going to utilize what's called the COUNTIF function. Has anybody used the COUNTIF function before, counting if you meet a certain criteria? So one of those things is we've got a large spreadsheet or we're doing an inventory and I want to know how many items I have that have a quantity over 20. And I need to create a formula that'll calculate all that for me. Because typically, you just kind of go through and eyeball it and put a checkmark next to everything that's got a quantity over 20 and then say, OK, I've got everything done.
Or with using the COUNTIF function that's built into Excel, if you do equals, COUNTIF, open bracket, we'll see we get our screen tip that appears. And at first, we need to select a range-- which, our range will be what we're going to count. So I need to find out each item, or how many items I have, that have a quantity over 20. So my range is going to be the quantity on hand column.
So I'll select that range under quantity on hand, which happens to be B4 through B9. I'll put a comma. And then I need to input my criteria. My criteria will typically be in quotes. And in this instance, I need to make sure my criteria states that it's over, or greater than, 20.
I'll put an end quote and then an end bracket in there. And now I've built this formula out that says count within this range, B4 through B9, for all the values that are larger than 20 and give me a total of how many those are. So once you hit Enter, it goes through and states there's only three values in this whole column that are over 20. And I know that based on criteria over this given threshold that there's only three of my inventory items that are over 20.
It gives you the ability to quickly go through an entire inventory list and determine some characteristics about it. It doesn't have to be over 20. It could be a cost association. So maybe we go and adjust this range. And we make this C4 through C9.
And I want to make sure I'm looking for any items that are less than $1. Because historically, my company does very bad with profit for items that are less than $1. We usually make $0.01 or $0.02 per item. And I need to have my sales staff completely pull those off the stock. We're getting rid of them. We're never going to sell anything below $1. We're the above a dollar store.
And so we're going in here, I'm doing my inventory really quick, and find out that out of my entire list of inventory, I know spoons and forks are below $1. Therefore, I'm never going to sell spoons and forks again in my store. We're only going for sales that are greater than $1, which will include plates, bowls, table cloths, and menus.