Sumifs with range of dates

jevi

Active Member
Joined
Apr 13, 2010
Messages
339
Office Version
  1. 2016
Platform
  1. Windows
Hi All,

I have this list of data with the date in column B3:B10000 and with the codes from column C2:AN2 and I am using the formula of Sumifs but is not getting the risult. It is maybe the codes are in columns and not in rows?

So i need to sume from a range of date like 01/07/2020 - 13/07/2020 the values that are for the code "0". and so on. But in the formula I have the codes in row:

=sumifs($c$3:$AN3$10000;$B$3:$B$10000;">="&$AM$3;$b$3:$b$10000;"<="&$AM$4;$c$2:$AN$2;$AL5)

0 - and here I wanted to have the sum but my formula above is not working.
1
2
3
4
thank you

01/07/2020​
dati.png
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
I'm confused, you say that your data is C3:AN10000, but your criteria cells AM3, AM4 & AL5 are all within that range.
 
Upvote 0
Sorry...i just rembered yesterday formula column that was AN:)

=sumifs($E$6:$AH$10000;$C$6:$C$10000;">="&$AM$3;$C$3:$C$10000;"<="&$AM$4;$E$5:$AH$5;$AL5)

This are the correct ranges. Thank you
 
Upvote 0
Ok, try
Excel Formula:
=SUMPRODUCT(($C$6:$C$10000>=$AM$3)*($C$3:$C$10000<=$AM$4)*($E$5:$AH$5=$AL5)*($E$6:$AH$10000))
 
Upvote 0
Solution
It worked super and I used the website that you gave for translating it corretly:)

Thnx a million....you are really helpful.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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