SUMIF/SUMIFS Amounts in Date Range

buggaboo76

Board Regular
Joined
Apr 10, 2009
Messages
54
Hello! I'm struggling with needing a formula that allows me to:

1) Look at the date range in column B,
2) verify for this cell which would be named July above it, that it looks in B1:B1000 for any date in July,
2) verify in column F that "INT" is within the text
3) if so, total the values in column H that match those conditions.

The total for those conditions would be $1359.90.

Ideally I would want to repeat this for the other months of the year as well. So, in essence, summing all expenses for July that are "Int" in column F. Any help would be really appreciated. I hope I was not confusing with this.

Column B
[TABLE="width: 693"]
<tbody>[TR]
[TD]6/17/2019[/TD]
[TD]ORD[/TD]
[TD]7411231[/TD]
[TD]800106[/TD]
[TD]PD Int Labor Act[/TD]
[TD]D[/TD]
[TD]193.68[/TD]
[/TR]
[TR]
[TD]6/18/2019[/TD]
[TD]ORD[/TD]
[TD]7411231[/TD]
[TD]800106[/TD]
[TD]PD Int Labor Act[/TD]
[TD]D[/TD]
[TD]290.52[/TD]
[/TR]
[TR]
[TD]7/8/2019[/TD]
[TD]ORD[/TD]
[TD]7411231[/TD]
[TD]800106[/TD]
[TD]PD Int Labor Act[/TD]
[TD]D[/TD]
[TD]28.26[/TD]
[/TR]
[TR]
[TD]7/9/2019[/TD]
[TD]ORD[/TD]
[TD]7411231[/TD]
[TD]800106[/TD]
[TD]PD Int Labor Act[/TD]
[TD]D[/TD]
[TD]141.30[/TD]
[/TR]
[TR]
[TD]7/10/2019[/TD]
[TD]ORD[/TD]
[TD]7411231[/TD]
[TD]800106[/TD]
[TD]PD Int Labor Act[/TD]
[TD]D[/TD]
[TD]28.26[/TD]
[/TR]
[TR]
[TD]7/9/2019[/TD]
[TD]ORD[/TD]
[TD]7411231[/TD]
[TD]800106[/TD]
[TD]PD Int Labor Act[/TD]
[TD]D[/TD]
[TD]96.84[/TD]
[/TR]
[TR]
[TD]7/10/2019[/TD]
[TD]ORD[/TD]
[TD]7411231[/TD]
[TD]800106[/TD]
[TD]PD Int Labor Act[/TD]
[TD]D[/TD]
[TD]193.68[/TD]
[/TR]
[TR]
[TD]7/11/2019[/TD]
[TD]ORD[/TD]
[TD]7411231[/TD]
[TD]800106[/TD]
[TD]PD Int Labor Act[/TD]
[TD]D[/TD]
[TD]96.84[/TD]
[/TR]
[TR]
[TD]7/22/2019[/TD]
[TD]ORD[/TD]
[TD]7411231[/TD]
[TD]800106[/TD]
[TD][TABLE="width: 154"]
<tbody>[TR]
[TD]Temporary Labor-Norm[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]D[/TD]
[TD]182.89[/TD]
[/TR]
[TR]
[TD]7/1/2019[/TD]
[TD]ORD[/TD]
[TD]7411231[/TD]
[TD]800106[/TD]
[TD]PD Int Labor Act[/TD]
[TD]D[/TD]
[TD]290.52[/TD]
[/TR]
[TR]
[TD]7/3/2019[/TD]
[TD]ORD[/TD]
[TD]7411231[/TD]
[TD]800106[/TD]
[TD]PD Int Labor Act[/TD]
[TD]D[/TD]
[TD]290.52[/TD]
[/TR]
[TR]
[TD]7/15/2019[/TD]
[TD]ORD[/TD]
[TD]7411231[/TD]
[TD]800106[/TD]
[TD]PD Int Labor Act[/TD]
[TD]D[/TD]
[TD]193.68[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Ok, try
=SUMPRODUCT((MONTH($B$2:$B$335)=7)*(ISNUMBER(SEARCH("int",$F$2:$F$335))),$H$2:$H$335)

Just change the value in red for the month that you want.
 
Upvote 0

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
One question I thought of...what happens if it goes into the next year? Will it, for example take January 2019, and January 2020 and combine them, since it is a "1"?
 
Upvote 0
Yes it will.
To prevent that use
=SUMPRODUCT((YEAR($B$2:$B$335)=2019)*(MONTH($B$2:$B$335)=7)*(ISNUMBER(SEARCH("int",$F$2:$F$335))),$H$2:$H$335)
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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