Solved

Excel: Sum columns using multiple criteria (sumifs variant)

Posted on 2015-02-23
6
108 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
  • 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 11

Accepted Solution

by:
Wilder1626 earned 500 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
excel filters 2 28
Excel 2013: Default workbook 13 27
Delete all empty columns using VBA 7 37
VLOOKUP 6 16
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

785 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