Month To Date SUMIFS formula calculating incorrectly

cmjay

New Member
Joined
Nov 10, 2013
Messages
10
Hi,

I'm using the following SUMIFS formula to calculate a running MTD figure from data in column B based on dates in column J and names in column I:

=SUMIFS('RawRevenueData-(Nov)'!B:B,'RawRevenueData-(Nov)'!J:J,">="&DATE(YEAR(TODAY()),MONTH(TODAY()),1),'RawRevenueData-(Nov)'!I:I,"Federal Projects")-SUMIFS('RawRevenueData-(Nov)'!B:B,'RawRevenueData-(Nov)'!J:J,">"&DATE(YEAR(TODAY()),MONTH(TODAY())+1,1),'RawRevenueData-(Nov)'!I:I,"Federal Projects")

It looks as though it's running a month range rather than hard stops at the end of the month; for example, data in early February is included in today (january's) MTD total.

Anyone have a potential solution?

Thanks!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
It looks as though it's running a month range rather than hard stops at the end of the month; for example, data in early February is included in today (january's) MTD total.

Not I sure follow what you are describing but right now you are summing all values with a greater or equal date than 01/01/2017 (first sumifs function) and subtracting it from it all values with a greater date than 02/01/2017. This is not your desired output? In any case, could you post a sample of your data?
 
Last edited:
Upvote 0
Not I sure follow what you are describing but right now you are summing all values with a greater or equal date than 01/01/2017 (first sumifs function) and subtracting it from it all values with a greater date than 02/01/2017. This is not your desired output? In any case, could you post a sample of your data?

I'm having trouble inserting a sample of the data; here's a basic version:
Order #RevenueMiscMiscMiscMiscMiscMiscSalsepersonOrder Date
914P10902,000xxxxxxFederal Projects1/1/17
cg5089904,000xxxxxxFederal Projects2/1/17

<tbody>
</tbody>

I would need a formula that returns a value of 2,000; the current formula returns 6,000.

Thanks!
 
Upvote 0
Try:

=SUMIFS('RawRevenueData-(Nov)'!B:B,'RawRevenueData-(Nov)'!J:J,">="&DATE(YEAR(TODAY()),MONTH(TODAY()),1),'RawRevenueData-(Nov)'!I:I,"Federal Projects",)'RawRevenueData-(Nov)'!J:J,"<"&DATE(YEAR(TODAY()),MONTH(TODAY())+1,1)
 
Upvote 0
Try:

=SUMIFS('RawRevenueData-(Nov)'!B:B,'RawRevenueData-(Nov)'!J:J,">="&DATE(YEAR(TODAY()),MONTH(TODAY()),1),'RawRevenueData-(Nov)'!I:I,"Federal Projects",)'RawRevenueData-(Nov)'!J:J,"<"&DATE(YEAR(TODAY()),MONTH(TODAY())+1,1)

That formula is showing as an error.

Thanks for your help!
 
Upvote 0
I put the ) in the wrong place, instead of the end. Try again:

=SUMIFS('RawRevenueData-(Nov)'!B:B,'RawRevenueData-(Nov)'!J:J,">="&DATE(YEAR(TODAY()),MONTH(TODAY()),1),'RawRevenueData-(Nov)'!I:I,"Federal Projects",'RawRevenueData-(Nov)'!J:J,"<"&DATE(YEAR(TODAY()),MONTH(TODAY())+1,1))
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

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