sumif, 90 days, multiple items

stanchy

New Member
Joined
Oct 24, 2013
Messages
10
I am trying to sum the total quantity of orders, between 6 part numbers, over the past 90 days.

I have come up with a 90 day sumif for a full column
=SUMIFS(C6:C20,A6:A20,">="&A2,A6:A20,"<="&A1)

A1 =now
A2 =now(-90)
A6:20 = Date
C6:20 = Value

It works great for a table with only 1 type of item, and a full column


Now I need to use the same type of formula, but over a bigger spreadsheet

Still need 90 day history
But to pick out 6 part numbers out of 100

How can I search for part number= 1 or 2 or 3 or 4 or 5 or 6 between dates now and now(-90) and sum the total?

Can I reuse the sumifs I did above, but replace the c6:c20 with another formula?
or am i going about this the wrong way?

Its friday... and I have an hour left in my work week
soooo hope everyone has a great weekend!

Thanks!
 
Last edited:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Use the array formula by pressing Shift + Control + Enter

=SUM(SUMIFS(C6:C20,A6:A20,">="&A2,A6:A20,"<="&A1,B6:B20,"="&E11:E12))

I assume that B6:B20 has the list of parts and E11:E12 has the parts that you want to add total for. You can expand E11:E12 to include list of 6 parts instead of two that I used in the example.

Let me know how you go.

Enjoy your weekend. Here my weekend already started and got Monday as public holiday.
 
Upvote 0
Hi,

You can add a condition in your SUMIFS formula for each "part number", if you have 6 part numbers, you'll need 6 SUMIFS formulas, then SUM all the SUMIFS, or you can use 1 SUMPRODUCT formula.
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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