Formula to Add critiera - SUMIFS?

Posted on 2013-01-15
Medium Priority
Last Modified: 2013-01-15

I am trying to write a formula which adds a total number of hours for a particular person for each month -ie. a monthly total.

I have been playing with the use of a SUMIFS forumlas so I can use multiple criteria but I have not been able to write it with much luck!..

Is SUMIFS the best way to approach this requirements?

I hope the spreadsheet makes sense ;)
Question by:gisvpn
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +2

Expert Comment

ID: 38777351
try this :


replace "=Jim" with "=Amy" for Amy's hours
LVL 16

Expert Comment

by:Peter Kwan
ID: 38777359
You may use SUMPRODUCT.

For example:

Total for Nov for Jim = SUMPRODUCT((A:A>=DATEVALUE("1/11/2012"))*(A:A<=DATEVALUE("30/11/2012"))*(B:B=F6),C:C )
LVL 19

Expert Comment

ID: 38777370
isn´t it Pivot table suitable for you enough?
Just use pivot table filter to show months (I added one column to your table with month number)
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 19

Expert Comment

ID: 38777395
or maybe this is how you wanted to have it with SUMIFS (one date is missing in your table so SUM of C rows is not the same as SUM of data after SUMIFS)

Author Comment

ID: 38777534
thank you all for your posts.

Do you know If I can use within SUMPRODUCT the DateValue function with the date being referenced in another cell, for example :


I cannot seem to get it to work this way if I were to reference the start and end dates from another cell, I was just trying to think of another way to speed up writting the cells ;)

thank you for your posts also.
LVL 16

Expert Comment

by:Peter Kwan
ID: 38777657
Hi, gisvpn,

Is there any example that you tried not working?

Author Comment

ID: 38777682
sure please see attached
LVL 16

Accepted Solution

Peter Kwan earned 1000 total points
ID: 38777701
You don't need datevalue in this case.  DATEVALUE function is for converting a text value to a date value. Since your G4, G5 are already date value, there is no need to use this function.

Just  the following should work.

= SUMPRODUCT((A:A>=G4)*(A:A<=G5)*(B:B=F6),C:C )
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 1000 total points
ID: 38777787
.....SUMIFS would probably be preferable though - it'll certainly be more efficient if you are referencing whole columns. The SUMIFS version would look like this for G6 copied down


regards, barry

Author Comment

ID: 38777819
Hi barryhoudini,

You're right, it makes a HUGE difference! thank you for the revision ;) It runs in a fraction of the time now ;)

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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…

718 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