Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Excel: Sum columns using multiple criteria (sumifs variant)

Posted on 2015-02-23
6
Medium Priority
?
126 Views
Last Modified: 2015-02-24
Hi,

I would like to calculate the attached yellow table. I think it's a sumifs formula - but it needs to only do this for the given date range.

Thanks for your help
ee-Factory.xls
0
Comment
Question by:dabug80
[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
  • 4
  • 2
6 Comments
 
LVL 11

Expert Comment

by:Wilder1626
ID: 40627161
Hi

Is that what you are looking for?
ee-Factory-no1.xls
0
 
LVL 11

Expert Comment

by:Wilder1626
ID: 40627169
Another way could be like this:
Example:

If you put this formula in Cell J7 :
=IF(SUMIFS(B:B,A:A,J3)=0,"",SUMIFS(B:B,A:A,J3))

Open in new window


With the above formula, if no records was found, it would leave the cell empty instead of putting N/A# or 0
ee-Factory-no2.xls
0
 
LVL 1

Author Comment

by:dabug80
ID: 40627179
Thanks Jean-Marc,

This works, but I'm hoping for a formula that doesn't define/lock the date column - but rather searches for the appropriate column based on the given date in the yellow cells. By doing it this way, I don't have to worry about users changing the dates on either of the tables.

Is this possible?
0
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 11

Accepted Solution

by:
Wilder1626 earned 2000 total points
ID: 40627224
Is this more what you are looking for?

It will look at all dates columns

Just remember to press Ctrl+Shift+Enter after typing the formula, instead of just Enter. This is to activate the array formula rather than a single data value.
ee-Factory-no3.xls
0
 
LVL 1

Author Closing Comment

by:dabug80
ID: 40627325
Great. Works exactly how I wanted. Cheers.
0
 
LVL 11

Expert Comment

by:Wilder1626
ID: 40627871
I'm glad i was able to help :-)
0

Featured Post

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!

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.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

715 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