countif or sumif formula tricky one

Posted on 2014-02-10
Last Modified: 2014-02-10
Hi Experts excel 2007

I am trying to count the number of results between set dates..I have the following table.

col A.         Col B. Case 1.       Col C Result
1.                             6.                  Sum of values falling into 1-3 cat based on colA
2.                             5
3.                             8
4.                             1.                  Sum of val <4 based on col A
5.                             2
6.                             9
7.                            10
Question by:route217
  • 3
  • 2
LVL 29

Expert Comment

ID: 39846880
a bit not clear
counting results between set dates but see no dates here.
Sum of values falling into 1-3 cat based on colA
of what of Col B ?

 Sum of val <4 based on col A
also not clear

Col A is figures 1,2,3,4 etc.... ? or  ? what is the point for ?

can you post a sample workbook ?

Author Comment

ID: 39846888
Hi gowflow

question1. Sum of values falling into 1-3 cat based on colAof what of Col B ?
answer. 6+5+8=19...
I am using col a as a ref table.

Also the count would be 3 records. ..
LVL 48

Assisted Solution

Rgonzo1971 earned 250 total points
ID: 39846935

pls try


Open in new window


Open in new window

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

LVL 29

Accepted Solution

gowflow earned 250 total points
ID: 39846942
ok here it is you should use SUMIFS

for >=1 and <=3 this is the formula

for<4 this is the formula

and you can see it in the attached file.

Author Comment

ID: 39846948
Gowflow excellent feedback. would I do the count..
LVL 29

Expert Comment

ID: 39846949
Well read it again and although you said SUM of values for <4 but then you give the result of 3 then it is no more a SUMIFS but a COUNT

so for <4

You can use them without the S at the end as well but I prefer these as they open the door for multiple criteria if and when needed.

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Introduction This Article is a follow-up to my Mappit! Addin Article (, it was inspired by an email posting I made to EUSPRIG (, I will briefly cover: 1) An overvie…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now