Sumifs with range of dates

jevi

Active Member
Joined
Apr 13, 2010
Messages
261
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
 

Some videos you may like

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
51,001
Office Version
  1. 365
Platform
  1. Windows
I'm confused, you say that your data is C3:AN10000, but your criteria cells AM3, AM4 & AL5 are all within that range.
 

jevi

Active Member
Joined
Apr 13, 2010
Messages
261
Office Version
  1. 2016
Platform
  1. Windows
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
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
51,001
Office Version
  1. 365
Platform
  1. Windows
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))
 
Solution

jevi

Active Member
Joined
Apr 13, 2010
Messages
261
Office Version
  1. 2016
Platform
  1. Windows
It worked super and I used the website that you gave for translating it corretly:)

Thnx a million....you are really helpful.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
51,001
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,119,011
Messages
5,575,539
Members
412,674
Latest member
emeisee
Top