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

x
?
Solved

Sum by Month

Posted on 2016-09-03
12
Medium Priority
?
42 Views
Last Modified: 2016-09-03
Hello,

I am having an issue with summing data from another sheet.
It works fine if the data is on the same sheet.

Do you see where I have made a mistake?

thank you
EE-SumIF-Dates.xlsx
0
Comment
Question by:pdvsa
[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
  • 5
  • 5
  • 2
12 Comments
 
LVL 22

Expert Comment

by:Roy Cox
ID: 41782805
Have you set the data like that or is an import? You could achieve this more efficiently by using a PivotTable if the data was arranged correctly.
0
 

Author Comment

by:pdvsa
ID: 41782817
HI Roy, I wish I could use a pivot but the original data set is not in the correct form.  What I uploaded was pieces from the original.  I would like to be able to sum per month and reference the data from the other sheet.  I would like to reference data from teh other sheet to avoid the summary sheet having too much information.
0
 
LVL 22

Expert Comment

by:Roy Cox
ID: 41782823
I thought that must be the case. Is there no way to re-format the data? Maybe, just copy and pastespecial - transpose.
0
Industry Leaders: 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!

 

Author Comment

by:pdvsa
ID: 41782837
Maybe so.  
Let me know what you think about summing the data from another sheet.

thank you
0
 
LVL 22

Expert Comment

by:Roy Cox
ID: 41782840
Have you tried SUMIFS instead of SUMPRODUCT?
0
 

Author Comment

by:pdvsa
ID: 41782849
I have not...not sure how I would do that considering the data is on the other sheet.
0
 
LVL 22

Expert Comment

by:Roy Cox
ID: 41782852
I've just tried and the SUMIFS works fine on the same sheet, but not with the other sheet. I'll try to find out why.
0
 

Author Comment

by:pdvsa
ID: 41782858
I just tried too and I think the range and the sum range need to be on the same sheet.  The month you are referring to (criteria) for the sum can be on the sheet with the formula.

sumif(range,criteria, [sum range])
0
 
LVL 32

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 2000 total points
ID: 41782862
Please try this....
On Dates Sheet,
In B17
=SUMPRODUCT(('Data TEST'!$B$1:$BJ$1<>"")*(TEXT('Data TEST'!$B$1:$BJ$1,"mmmm")=B$14)*'Data TEST'!$B$2:$BJ$2)

Open in new window

and copy across.
0
 
LVL 22

Expert Comment

by:Roy Cox
ID: 41782868
This is really strange. It works perfectly when the data is arranged vertically. Note I changed the criteria to an actual date and formatted it "mmmm" on the Data Test Sheet, I prefere when working with dates to actually use real dates.
EE-SumIF-Dates--1-.xlsx
0
 

Author Closing Comment

by:pdvsa
ID: 41782876
thank you once again.
0
 
LVL 32

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41782887
You're welcome. Glad to help.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

688 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