SUM IF between two dates and another criterion

CaityA

New Member
Joined
May 24, 2018
Messages
2
Hey,

So I'm trying to pull combined sales data of an item between certain dates. The sheet I'm pulling from has the data by day so I'd need it combined for the specific dates queried using the item number.

Currently I was trying =SUMIFS(MIS!G:G,MIS!D:D,">="&DATE('PV Database'!O:O),MIS!D:D"<="&DATE('PV Database'!P:P),[[Item Number]]=MIS!A:A) but it doesn't seem to work...

The "at" from [item number] was removed due to the site thinking it was a link.

"MIS G" contains sales by day
"MIS D" contains the date by day
"PV Database O" contains start date
"PV Database P" contains end date
"MIS A" contains the item number

Apologies I can't share the document! Hopefully what I've noted here makes sense to someone...

Thanks:confused:
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Why are you using the DATE function?
 
Upvote 0
Ah sorry - I was playing earlier with the formula and didn't change it back before pasting.

Currently I'm at this point.. =SUMIFS(MIS[[#Headers],[Sales units/kg]],MIS[[#Headers],[Product (case)]],PVDB[[#Headers],[Item Number]],[[MIS[[#Headers],[Day]],">="&[@[Start Date ]], [MIS[[#Headers],[Day]], "<="&[@[End Date ]])

So that's meant to say.... Sum of tje sales if the product number matches the item number and if the day of sale in question is between the start and end date specified.
 
Upvote 0

Forum statistics

Threads
1,215,636
Messages
6,125,959
Members
449,276
Latest member
surendra75

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