Highlight Current Month Birthdays in Excel

August seems to be a very popular birthday month among my Excel friends. I won’t mention any names here, because most of them are quite elderly, and the shock might upset them. 😉 Anyway, to all of them, and you, if you’re celebrating this month — happy birthday!

Continue reading “Highlight Current Month Birthdays in Excel”

Excel LARGE and FLOOR Functions for Shark Week

It’s Shark Week on the Discovery Channel, so here are a couple of handy Excel functions you can use in case of a shark attack. Of course, if you stay home and watch television, you should be safe. The infamous land shark rarely attacks.

Continue reading “Excel LARGE and FLOOR Functions for Shark Week”

Count Numbers Between X and Y – Excel COUNTIF COUNTIFS

Sometimes you need to count the number of items that are in a range, such as between 5 and 10. For example:

  • How many students got a grade between 50 and 70?
  • How many golfers scored between 70 and 80?
  • How many orders were for a quantity between 5 and 10?

Excel COUNTIF and COUNTIFS Functions

In Excel 2007 and higher, use the COUNTIF and COUNTIFS functions to calculate the answers to those questions.

In earlier versions, COUNTIFS is not available, and you can use COUNTIF.

Continue reading “Count Numbers Between X and Y – Excel COUNTIF COUNTIFS”

Quickly Change Criteria for Excel COUNTIF Function

You’re comfortable with Excel, and can change formulas on the fly, when necessary. If you’re creating Excel workbooks for other people to use, their Excel skills probably aren’t as strong as yours.

Last month we looked at the COUNTIF formula, and how you can type an operator, then refer to a worksheet cell, to set a minimum value for counting.

refer to worksheet cell in COUNTIF formula
refer to worksheet cell in COUNTIF formula

Operator in Referenced Cell

In the comments, Kanti Chiba mentioned that the operator could be included in that referenced cell.

For example, you could type >=50 in a cell, and refer to that cell in the formula.

Create a List of Operators

I usually keep the operator in the formula, so it’s separate from the number, and users won’t have to worry about typing it. Kanti’s comment made me think about other options, and how we could let users select both the operator and the target number.

So, I typed a list of operators on a different sheet in the workbook, and named that list as OpList.

CountIfOpList01

Add a Drop Down List of Operators

The next step was to create a drop down list of operators, in the cell to the left of the Score input cell. I used data validation to create the drop down list, then selected one of the operators.

CountIfOpList02

Change the COUNTIF Formula

The final step was to change the COUNTIF formula, so it refers to the Operator cell. Now the COUNTIF formula results will change, if a different operator is selected.

CountIfOpList03

Watch the Video

To see the steps for creating a COUNTIF formula with a drop down list of operators, please watch this short Excel tutorial video.

More COUNTIF Links

For more examples of using the Excel COUNTIF function, see these blog posts:

Check Winning Numbers with COUNTIF

Use COUNTIFS for Multiple Criteria

Count Numbers in a Range

Count Cells Greater Than Set Amount

____________

Excel VLOOKUP in Different Ranges

You can use the VLOOKUP function to find data in a lookup table, based on a specific value. If you enter a product number in an order form, you can use a VLOOKUP formula to find the matching product name or price. See how to use Excel VLOOKUP in different ranges.

NOTE: The examples below use VLOOKUP to get the value from the correct table. You could do a similar lookup with the INDEX and MATCH functions.

Continue reading “Excel VLOOKUP in Different Ranges”

Keep Track With Excel Count Functions

Lots of people visit my Contextures website looking for information on the Excel Count functions.

Counting seems like an easy thing to do in Excel, if you’ve been using the program for a while. But, if you’re just starting out, it might not be so obvious.

Count Quirks

Even if you’re an experienced Excel user, there are a few quirks with the Count functions, that you might not have noticed yet.

For example, different count functions treat “empty” cells differently, as you can see in the screenshot below.

  • In Row 5, the blue cells contain a formula that creates an empty string.
  • The COUNTA function counts that cell, even though it looks empty.
  • The COUNTBLANK function counts the cell too, even though it contains a formula.

countempty

Watch the Video

To see the Excel Count functions that count numbers only, any data, or blank cells, you can watch this short video.

More Excel Count Function Examples

There are many more tips, examples and videos on the Excel Count functions page on my Contextures site.

Video: 7 Ways to Count in Excel

To see a quick overview of 7 ways to get a total count of cells in Excel, watch this 77-second video. There are written steps for each count function on the Excel Count functions page.

_______

Select Answers With Excel Option Buttons

image Male or female? English or French? Yes, No or Maybe? Those are just a few of the choices that you can make with Option Buttons in Excel. When people select answers with Excel Option Buttons, you can provide a list of possible answers to a questions, and users can only select one answer from the list.

Continue reading “Select Answers With Excel Option Buttons”