Avatar of pdvsa
pdvsa
Flag for United States of America asked on

Sum by Month

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
Microsoft Excel

Avatar of undefined
Last Comment
Subodh Tiwari (Neeraj)

8/22/2022 - Mon
Roy Cox

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.
pdvsa

ASKER
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.
Roy Cox

I thought that must be the case. Is there no way to re-format the data? Maybe, just copy and pastespecial - transpose.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
pdvsa

ASKER
Maybe so.  
Let me know what you think about summing the data from another sheet.

thank you
Roy Cox

Have you tried SUMIFS instead of SUMPRODUCT?
pdvsa

ASKER
I have not...not sure how I would do that considering the data is on the other sheet.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Roy Cox

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.
pdvsa

ASKER
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])
ASKER CERTIFIED SOLUTION
Subodh Tiwari (Neeraj)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Roy Cox

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
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
pdvsa

ASKER
thank you once again.
Subodh Tiwari (Neeraj)

You're welcome. Glad to help.