Calculate the sum of a list of items on the day

umirin

Board Regular
Joined
Jul 31, 2016
Messages
58
Office Version
  1. 365
Platform
  1. Windows
Hi I'm looking for help with a formula to go into H2 and fill to H6
In the H column I've put what the formula results should calculate to.

When I put a code into F column, the H column should calculate the sum of those codes on the given day

Thanks

Book1
ABCDEFGH
1DateCodePriceCalc only these CodesDateTotal Sum for Codes on the Day
2Tuesday, 20 April 2021ABC2ABCTuesday, 20 April 202129
3Wednesday, 21 April 2021ABC4DGFWednesday, 21 April 202119
4Thursday, 22 April 2021ABC5IJKThursday, 22 April 202116
5Friday, 23 April 2021ABC6Friday, 23 April 202115
6Saturday, 24 April 2021ABC3Saturday, 24 April 202113
7Tuesday, 20 April 2021DGF5
8Wednesday, 21 April 2021DGF8
9Thursday, 22 April 2021DGF3
10Friday, 23 April 2021DGF5
11Saturday, 24 April 2021DGF4
12Tuesday, 20 April 2021LKI7
13Wednesday, 21 April 2021LKI4
14Thursday, 22 April 2021LKI2
15Friday, 23 April 2021LKI7
16Saturday, 24 April 2021LKI9
17Tuesday, 20 April 2021ZTY1
18Wednesday, 21 April 2021ZTY5
19Thursday, 22 April 2021ZTY6
20Friday, 23 April 2021ZTY3
21Saturday, 24 April 2021ZTY6
22Tuesday, 20 April 2021IJK22
23Wednesday, 21 April 2021IJK7
24Thursday, 22 April 2021IJK8
25Friday, 23 April 2021IJK4
26Saturday, 24 April 2021IJK6
Sheet1
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try:
Book1
ABCDEFGH
1DateCodePriceCalc only these CodesDateTotal Sum for Codes on the Day
24/20/2021ABC2ABC4/20/202129
34/21/2021ABC4DGF4/21/202119
44/22/2021ABC5IJK4/22/202116
54/23/2021ABC64/23/202115
64/24/2021ABC34/24/202113
74/20/2021DGF5
84/21/2021DGF8
94/22/2021DGF3
104/23/2021DGF5
114/24/2021DGF4
124/20/2021LKI7
134/21/2021LKI4
144/22/2021LKI2
154/23/2021LKI7
164/24/2021LKI9
174/20/2021ZTY1
184/21/2021ZTY5
194/22/2021ZTY6
204/23/2021ZTY3
214/24/2021ZTY6
224/20/2021IJK22
234/21/2021IJK7
244/22/2021IJK8
254/23/2021IJK4
264/24/2021IJK6
Sheet1
Cell Formulas
RangeFormula
H2:H6H2=SUMPRODUCT($C$2:$C$26*($A$2:$A$26=G2)*ISNUMBER(MATCH($B$2:$B$26,$F$2:$F$4,0)))
 
Upvote 0
This formula should also work, Paste it in H2 and drag it down
=SUM(SUMIFS($C:$C,$A:$A,G2,$B:$B,$F$2:$F$50))
 
Upvote 0
Another option
+Fluff 1.xlsm
ABCDEFGH
1DateCodePriceCalc only these CodesDateTotal Sum for Codes on the Day
220/04/2021ABC2ABC20/04/202129
321/04/2021ABC4DGF21/04/202119
422/04/2021ABC5IJK22/04/202116
523/04/2021ABC623/04/202115
624/04/2021ABC324/04/202113
720/04/2021DGF5
821/04/2021DGF8
922/04/2021DGF3
1023/04/2021DGF5
1124/04/2021DGF4
1220/04/2021LKI7
1321/04/2021LKI4
1422/04/2021LKI2
1523/04/2021LKI7
1624/04/2021LKI9
1720/04/2021ZTY1
1821/04/2021ZTY5
1922/04/2021ZTY6
2023/04/2021ZTY3
2124/04/2021ZTY6
2220/04/2021IJK22
2321/04/2021IJK7
2422/04/2021IJK8
2523/04/2021IJK4
2624/04/2021IJK6
Main
Cell Formulas
RangeFormula
H2:H6H2=SUM(FILTER($C$2:$C$100,(ISNUMBER(MATCH($B$2:$B$100,$F$2:$F$4,0)))*($A$2:$A$100=G2)))
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
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