Sumif with date range and other criteria

AlanaT

New Member
Joined
Feb 20, 2019
Messages
6
How do I write a formula that is IF and SUMIF?
I have raw data (in Sheet2) of Column A=Invoice Date, Column B=Sales Rep Name, and Column C= Sales Amount.
What I need to do is sum each Sales Reps' Sales Amount for each date range (i.e: May 1st to May 7th).
I'm using Named Ranges for the start and end date of each week.
Tried something like this:
=SUMIFS(Sheet2!$C:$C,Sheet2!$A:$A,">=Week1Start",Sheet2!$A:$A,"<=Week1End",Sheet2!$B:$B,$A1)
{where column A lists all rep names}

Help!?
 

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
Excel Formula:
=SUMIFS(Sheet2!$C:$C,Sheet2!$A:$A,">="&Week1Start,Sheet2!$A:$A,"<="&Week1End,Sheet2!$B:$B,$A1)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,497
Messages
6,125,157
Members
449,208
Latest member
emmac

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