formula to add up sums in a date range

MarkDave

New Member
Joined
Mar 25, 2009
Messages
30
Office Version
  1. 365
Platform
  1. Windows
Hi, I have a spreadsheet where Colin e has a date and column d has a figure. I then have a table on a separate sheet which has a date range, I.e 2/10/2017 - 8/10/2017 - and then a total
cell. I need the total cell to be populated with the sum of columnd d where these figures fall within the date range - any ideas?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi, take a look at the SUMIFS() formula - for example:


Excel 2013/2016
DEFGHI
1FigureDateFromToTotal
2501/10/201702/10/201708/10/201744
3602/10/2017
4703/10/2017
5804/10/2017
6905/10/2017
7506/10/2017
8407/10/2017
9508/10/2017
10409/10/2017
11710/10/2017
Sheet1
Cell Formulas
RangeFormula
I2=SUMIFS(D:D,E:E,">="&G2,E:E,"<="&H2)
 
Upvote 0
That works a treat, thank you - I just need to work out how to total it up on sheet two now...thanks again.
 
Upvote 0
I just need to work out how to total it up on sheet two now

Hi, if you mean the "figure" and "date" columns are on sheet2 then something like:

=SUMIFS(Sheet2!D:D,Sheet2!E:E,">="&G2,Sheet2!E:E,"<="&H2)
 
Upvote 0
Hi, if you mean the "figure" and "date" columns are on sheet2 then something like:

=SUMIFS(Sheet2!D:D,Sheet2!E:E,">="&G2,Sheet2!E:E,"<="&H2)

This is excellent thank you. It works perfectly. I may need to share this with someone who uses excel pre 2007, is there a similar sum product formula I could use?
 
Upvote 0
I may need to share this with someone who uses excel pre 2007

Hi, that's an old version :eeek:!

This would be equivalent:

=SUMPRODUCT(--(Sheet2!$D$1:$D$1000),--(Sheet2!$E$1:$E$1000>=G22),--(Sheet2!$E$1:$E$1000<=H2))
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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