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:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
How about

Book1
BCDEFGHIJ
101/07/2019
217/06/2019ORD7411231800106PD Int Labor ActD193.681359.9
318/06/2019ORD7411231800106PD Int Labor ActD290.52
408/07/2019ORD7411231800106PD Int Labor ActD28.26
509/07/2019ORD7411231800106PD Int Labor ActD141.3
610/07/2019ORD7411231800106PD Int Labor ActD28.26
709/07/2019ORD7411231800106PD Int Labor ActD96.84
810/07/2019ORD7411231800106PD Int Labor ActD193.68
911/07/2019ORD7411231800106PD Int Labor ActD96.84
1022/07/2019ORD7411231800106Temporary Labor-NormD182.89
1101/07/2019ORD7411231800106PD Int Labor ActD290.52
1203/07/2019ORD7411231800106PD Int Labor ActD290.52
1315/07/2019ORD7411231800106PD Int Labor ActD193.68
Master Image
Cell Formulas
RangeFormula
J2=SUMPRODUCT((MONTH(B2:B13)=MONTH(J1))*(ISNUMBER(SEARCH("int",F2:F13))),H2:H13)
 
Upvote 0
Wow! Thank you very much for the quick reply. The only part I'm not understanding is the "=MONTH(J1)" part. When I add the formula in, I get #VALUE as well. I changed it to currency from general, but I'm guessing the problem is I do not have J1 like you do, and since I'm not sure how it works, I'm not sure what to put.

Thank you.
 
Last edited:
Upvote 0
J1 is just a date as seen in the data I posted.
It simply needs to be any date in the month you're interested in.
 
Upvote 0
I'm sorry, is J1 supposed to account for the entire month of July? Do I need to changed the dates so they are formatted as you have done them? Is that why I'm getting an error on the formula? I tried changing the date format to match what I had with no success.
 
Upvote 0
The date format doesn't matter as long as they are proper dates & not text.
Slect the column with the dates & change the format to General, do they still look like dates or are they numbers like 43633?
 
Upvote 0
They look like 43633 when switched to General. I was getting #VALUE when I copy/pasted the formula in, and forgot to change to J1. When I changed it to J1 and entered the 7/1/19 date there, it tells me the formula is not correct.
 
Upvote 0
Do you want a cell where you can input the month, or do you want it hard coded into the formula?
Also, what are the actual ranges of your data?
 
Upvote 0
I was hoping to have it in the formula, and spit out the total into 1 cell. So looking through B2:B335 (same range for all of them), it totals based on those conditions, and gives me the total of $$1359.90 in that cell. Then I would perform the same thing for all the other months, each with their own cell. Does that make sense? I'm just downloading the data, and then looking to get totals for each month.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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