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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,071
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
53,071
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
53,071
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,850
Messages
5,598,457
Members
414,239
Latest member
xnanx

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
Top