Sum(Sumifs)

eddiejames

New Member
Joined
Jan 30, 2022
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
Hi Everyone,

I'm hoping someone can help me out with a function that isn't working for me.

I want to sum a range (I2:I2500 from 'Sheet 1') based on two criteria; a list of product numbers (range can be found on Sheet 1, K2:K2500) and a date (range found on Sheet 1, N3:N2501) being 'greater than' another date that is populated into a cell (B16).

I have written the following function, but there is an issue with it as it always results in a value of zero:

=SUM(SUMIFS('Sheet 1'!I2:I2500,'Sheet 1'!N3:N2501,">" & B16,'Mould Data'!K2:K2500,{"Product1","Product2","Product3","Product4","Product5","Product6"}))/1000

Can anyone see what I am doing wrong?

I'll give bonus points to anyone who can suggest a way for me to be able to manually update a table with new Product Numbers that can auto populate this function, so that the function doesn't need to be altered if new products are introduced. eg:

=SUM(SUMIFS('Sheet 1'!I2:I2500,'Sheet 1'!N3:N2501,">" & B16,'Mould Data'!K2:K2500,{O7:O12}))/1000

Thank you so much in advance for any help.

Eddie
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi

Your ranges do not have the same size.

Bonuspoints for Excel tables (CTRL-T) and structured references.
 
Upvote 0
Hi Shift-del,

Thanks for replying, but I don't think that is the issue.

The ranges all have a size of 2498 cells, except for the 'bonus' one which I just threw in for the sake of illustration. If they weren't the same I believe I would get #VALUE instead of a 0.

Is there anything else that you can see that might be giving me issues?

Eddie
 
Upvote 0
Using my own data I get 0.01 as a result.
So it must be your data. Probably no matches for the criteria. I could as simply as an additional space.
 
Upvote 0
Hi,

This to answer the 2nd part of your question.
Adjust cell references/ranges, add sheet name, accordingly.
Obviously, nothing will work until you fix your data, since at this point, they're Not matching up.

Book3.xlsx
ABCDEFGH
123a20.0460.046a
235ba^using cell referencing for criteriab
343cc
454b
563c
671b
785c
891b
9106c
10119b
Sheet978
Cell Formulas
RangeFormula
E1E1=SUM(SUMIFS(A1:A10,B1:B10,">"&D1,C1:C10,{"a","b","c"}))/1000
F1F1=SUMPRODUCT(SUMIFS(A1:A10,B1:B10,">"&D1,C1:C10,H1:H4))/1000
 
Last edited:
Upvote 0
Thanks so much jtakw! you've collected the bonus points :)

The rest of it is clearly me not knowing my basics, thanks so much for the assistance guys.

Eddie
 
Upvote 0
Thanks so much jtakw! you've collected the bonus points :)

The rest of it is clearly me not knowing my basics, thanks so much for the assistance guys.

Eddie

You're welcome, but there're no "bonus points" provision on MrExcel, we Do; however, have the "Like" button (y)
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,831
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top