Sum up a range of cells - based on matching fortnight beginning date

rstuart

New Member
Joined
Apr 26, 2009
Messages
32
Office Version
  1. 365
Platform
  1. Windows
I have a budget table.

Fortnightly dates are listed in Column A - where I summarise total expenses per fortnight from table on right.

I wish to create formula i can autofill that will SUM UP (from table on right) the amounts across 7 columns and 10 rows (2 weeks) based on the fortnight beginning date.

Below: I autosum the fortnight beginning 1 April - 14 April (the table continues like this for 2 years)

W/b dateTotal ExpensesDaily expenseExp 1Exp 2Exp 3Exp 4Exp 5Exp 6Exp 7
Friday, 1 April 2022$1,507.07Friday, 1 April 2022$50.00$300.00$378.09
Friday, 15 April 2022Monday, 4 April 2022$355.00
Friday, 29 April 2022Tuesday, 5 April 2022
Friday, 13 May 2022Wednesday, 6 April 2022
Friday, 27 May 2022Thursday, 7 April 2022
Friday, 10 June 2022Friday, 8 April 2022$34.00$17.99
Friday, 24 June 2022Monday, 11 April 2022$355.00
Friday, 8 July 2022Tuesday, 12 April 2022
Friday, 22 July 2022Wednesday, 13 April 2022
Friday, 5 August 2022Thursday, 14 April 2022$16.99
Friday, 19 August 2022
Friday, 2 September 2022
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi,

If I understand correctly:

Change/Adjust cell range/references to include your Entire Table (for the 2 years).

Book3.xlsx
ABCDEFGHIJK
1W/b dateTotal ExpensesDaily expenseExp 1Exp 2Exp 3Exp 4Exp 5Exp 6Exp 7
24/1/2022$1,507.074/1/2022$50.00$300.00$378.09
34/15/2022$265.004/4/2022$355.00
44/29/2022$0.004/5/2022
55/13/2022$0.004/6/2022
65/27/2022$0.004/7/2022
76/10/2022$0.004/8/2022$34.00$17.99
86/24/2022$0.004/11/2022$355.00
97/8/2022$0.004/12/2022
107/22/2022$0.004/13/2022
118/5/2022$0.004/14/2022$16.99
128/19/2022$0.004/15/202255
139/2/2022$0.004/16/202299111
Sheet1063
Cell Formulas
RangeFormula
B2:B13B2=SUMPRODUCT((D$2:D$13>=A2)*(D$2:D$13<A2+14)*E$2:K$13)
 
Upvote 0
Solution
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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