Sumifs lower than a given day

el_ja

Board Regular
Joined
Nov 5, 2007
Messages
80
Hello
I'm trying to do a sumifs formula based on 2 criterias. The first is a name.

the second one I can't do is when the date DAY is lower than 15.

For example in the table below I want to get the sum of A only lower than 15, the result should be 2.000

I was trying something (hardcoded just for clarity) like: +sumifs(value, name, "A", day(date),"<15")
But it doesn't go through, also thought to put them between {} but it doesn't work.
I don't want to do a 4th column with the days, but if its not possible I guess I can do that.

[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Date[/TD]
[TD]Value[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]09/11/2019[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]09/13/2019[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]09/16/2019[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]09/14/2019[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]09/16/2019[/TD]
[TD]1000[/TD]
[/TR]
</tbody>[/TABLE]

Thanks for the help
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Excel Workbook
CDEF
1NameDateValue
2A9/11/201910002000
3A9/13/20191000
4A9/16/20191000
5B9/14/20191000
6B9/16/20191000
Next Download
 
Upvote 0
Try

<table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td><td >D</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td >Name</td><td >Date</td><td >Value</td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td >A</td><td style="text-align:right; ">11/09/2019</td><td style="text-align:right; ">1000</td><td style="text-align:right; ">2000</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td >A</td><td style="text-align:right; ">13/09/2019</td><td style="text-align:right; ">1000</td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td >A</td><td style="text-align:right; ">16/09/2019</td><td style="text-align:right; ">1000</td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td >B</td><td style="text-align:right; ">14/09/2019</td><td style="text-align:right; ">1000</td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td >B</td><td style="text-align:right; ">16/09/2019</td><td style="text-align:right; ">1000</td><td > </td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b></b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Array Formula</td></tr><tr><td >D2</td><td >{=SUM(IF(A2:A6="A",IF(DAY(B2:B6)<15,C2:C6)))}</td></tr></table></td></tr></table>

Array formulas
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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