Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to count/sum the cells greater than but less than a number?

There is a range of data in a worksheet as shown below, and now you want to count or sum the cells which are greater than a certain number but also less than another certain number in the range. Here, in Excel, COUNTIF and SUMIF formulas can help you.


Select Specific Cells (select cells/row/columns based on one ore two criteria.)

doc kutools


Count the cells greater than a certain number but less than another certain number in a range. In this case, I count the cells greater than number 30 but less than number 50.

Please select a blank cell, for instance, the Cell C6, type this formula =COUNTIF(A1:C5,">30") - COUNTIF(A1:C5,">50") (the range A1: C5 indicates the range you want to count the cells which meet to the criteria, the number 30 and 50 stand the criteria, you can change them as you need), and press Enter button on the keyboard. See screenshot:


For summing the cells greater than a certain number but also less than another certain number in a range, the following formula can help you.

Please select a blank cell, for instance, the Cell C6, type this formula =SUMIF(A1:C5,">30")-SUMIF(A1:C5,">50") (the range A1: C5 indicates the range you want to sum the cells which meet to the criteria, the number 30 and 50 stand the criteria, you can change them as you need), and press Enter button on the keyboard. See screenshot:


With above formulas, you need to count and sum cells with different formulas, but with Kutools for Excel’s Select Specific Cells utility, you can select the cells which match to the criterion and then get the counting, summing, and average result at the Status bar

Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.

After free installing Kutools for Excel, please do as below:

1. Select the data range, and click Kutools > Select > Select Specific Cells. See screenshot:

doc kutools 1

2. In the Select Specific Cells dialog,

(1) Check Cell option under Select type section,

(2) Then select Greater than in first drop down list and type the number criterion in the next to box, and select Less than from second drop down list and type the number into beside box,

(3) And check And option.

doc kte 2

3. Click Ok. Now the cells greater than 20 but less than 40 are selected. You can view the results of counting, summing and average at the Status bar.

doc kte 3

With Select Specific Cells, you can select cells, rows or columns based on cell value, click here to know more about it.

Tip.If you want to count cells based on background color or font color, please try to use the Kutools for Excel’s Count by Color as shown in the following screenshot. It’s full function without limitation in 60 days, please download and have a free trial now.

Count by Color

In some cases, you may have a range of calues with multiple colors, and what you want is to count/sum values based on same color, how can you quickly calculate?
With Kutools for Excel's Count by Color, you can quickly do many calculations by color, and also can generate a report of the calculated result.
doc count by color

Relative Articles:


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.