SUMIF formula if another field falls between a date range

benchris

New Member
Joined
Feb 10, 2016
Messages
24
Office Version
  1. 2019
Platform
  1. Windows
What I am trying to do is find total dollars sold by a certain value, but the date value of another field has to be less then or equal to a date.

I have a table where a sumif is working pulling in the sum of certain values:

The formula is: =SUMIF(H:H,Z7,P:P)
H:H = the column that has all of the item group's
Z7 = item group number
P:P is the column of the value to be returned

There is also another field that shows the date the transaction took place. I am looking to create a formula that would state if the date range is less than or equal to <this field>, then the sumif statement would give back the results where the date column is equal or less than the date in the field.

For example

Col A Col B Col C
Date Item Group Value
02/04/2016 115 $1999
02/23/2015 116 $100
01/31/2016 115 $500

Field AA7 =SUMIF(B:B,Z7,C:C) and Z7 has value 115 in it and it would return $2449
Field AA8 = =SUMIF(B:B,Z8,C:C) and Z8 has value 116 in it and it would return $100

What I am trying to figure out is how to have a static date field and then a formula that would say that if the date is "<=" than the date stated in field Z10 then include the results from that row in the results.

Does this make sense? Any ideas on how I can accomplish this?

I appreciate the help. I have been reading here a lot, but finally registered today.

Thanks
Ben
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,215,336
Messages
6,124,329
Members
449,155
Latest member
ravioli44

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