Calculating total daily spend based on start and end dates

harooneyp

New Member
Joined
Feb 23, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have multiple ad campaigns running with different start dates, end dates, duration and budget throughout the year.

I would like to see the total daily spend (based from the specific start dates and end dates for cumulative campaigns). I've attached an image for reference (Column I has no formulas, was done manually for demonstration purposes).

Appreciate in the help in advance. Cheers!
 

Attachments

  • Example1.jpg
    Example1.jpg
    112 KB · Views: 34

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Welcome to the forum!

Probably with SUMIFS?

Book1.xlsm
BCDEFGHIJ
1Start dateEnd dateSpend01-01-2190
201-01-2108-01-219002-01-2190
306-01-2115-01-2118003-01-2190
414-01-2118-01-2150004-01-2190
505-01-2190
606-01-21270
707-01-21270
808-01-21270
909-01-21180
1010-01-21180
1111-01-21180
1212-01-21180
1313-01-21180
1414-01-21680
1515-01-21680
1616-01-21500
1717-01-21500
1818-01-21500
1919-01-210
2020-01-210
Sheet1
Cell Formulas
RangeFormula
J1:J20J1=SUMIFS(F:F,B:B,"<="&I1,C:C,">="&I1)
 
Upvote 0
Welcome to the forum!

Probably with SUMIFS?

Book1.xlsm
BCDEFGHIJ
1Start dateEnd dateSpend01-01-2190
201-01-2108-01-219002-01-2190
306-01-2115-01-2118003-01-2190
414-01-2118-01-2150004-01-2190
505-01-2190
606-01-21270
707-01-21270
808-01-21270
909-01-21180
1010-01-21180
1111-01-21180
1212-01-21180
1313-01-21180
1414-01-21680
1515-01-21680
1616-01-21500
1717-01-21500
1818-01-21500
1919-01-210
2020-01-210
Sheet1
Cell Formulas
RangeFormula
J1:J20J1=SUMIFS(F:F,B:B,"<="&I1,C:C,">="&I1)

Thanks for the reply! The formula helped a bunch.

However now there's an issue: The formula you provided is adding an extra day (including start date AND end date when it shouldn't) for each of the campaigns. Any idea?

Cheers in advance.
 

Attachments

  • Issue.jpg
    Issue.jpg
    155.8 KB · Views: 9
Upvote 0
Thanks for the reply! The formula helped a bunch.

However now there's an issue: The formula you provided is adding an extra day (including start date AND end date when it shouldn't) for each of the campaigns. Any idea?

Cheers in advance.

@aRandomHelper See attached
 

Attachments

  • Issue example.jpg
    Issue example.jpg
    154.5 KB · Views: 11
Upvote 0
On which day should it not include?
23rd jan or 7th feb?

Try changing either the " >= " or " <= " to " > " or " < " accordingly.
=SUMIFS(F:F,B:B,"<="&I1,C:C,">="&I1)


this post was so difficult to type out on phone..
 
Upvote 0
On which day should it not include?
23rd jan or 7th feb?

Try changing either the " >= " or " <= " to " > " or " < " accordingly.
=SUMIFS(F:F,B:B,"<="&I1,C:C,">="&I1)


this post was so difficult to type out on phone..

Amazing, it works! Thank you so much for your help!
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,412
Members
448,959
Latest member
camelliaCase

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