Solved

SumIfs Function - Simple Question (I think!)

Posted on 2014-01-28
4
238 Views
Last Modified: 2014-01-28
The following syntax is accepted;

=SUMIFS(T2,Q2,"="&4040,C2,"="&1)

However, when I multiply the C2 by 12, I get an error.  Why?

=SUMIFS(T2,Q2,"="&4040,C2*12,"="&1)
0
Comment
Question by:Patrick O'Dea
[X]
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
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
nutsch earned 250 total points
ID: 39816552
Because C2*12 is not a range, which is the expected parameter type.

Try

=SUMIFS(T2,Q2,4040,C2,1/12)

Thomas
0
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 250 total points
ID: 39816555
You can't modify the ranges in any way in SUMIFS so C2*12 isn't valid. If C2*12 should = 1 then wouldn't C2 = 1/12? In which case this version should work

=SUMIFS(T2,Q2,"="&4040,C2,1/12)

although you wouldn't normally need SUMIFS for single cell ranges - are those really your ranges? if so then this should be sufficient

=IF(AND(Q2=4040,C2*12=1),T2,0)

regards, barry
0
 
LVL 39

Expert Comment

by:nutsch
ID: 39816557
I was trying to edit my comment to basically say the same thing as barry. Why SUMIFS indeed?

The IF option is an alternative, as is the following:

=(Q2=4040)*(C2/12=1)*T2

Thomas
0
 

Author Closing Comment

by:Patrick O'Dea
ID: 39816560
Thanks folks,

I see the obvious error now- it's late here .... maybe I'm tired!
0

Featured Post

Independent Software Vendors: 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!

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 a serious pitfall that can happen when deleting shapes using VBA.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

707 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