Solved

SumIfs Function - Simple Question (I think!)

Posted on 2014-01-28
4
231 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 will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

730 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