Formula to sum values from a table

JackSnakes

New Member
Joined
Aug 15, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi All,
I have been struggling with vlookup/hlookup to try to solve this.
I have a table, a representation of which is given below:
Index No.DateDayHaulierpallet QtyCustomer namePO numberProductProduct codeQty in caseNo. of cases
23138614/08/23TUECOLLECT0.04smithsSuper Firm 900g x 9DCSF0992
23138714/08/23TUEcollect0.01jonesSuper Firm 300g x 5DFSF0554
23138814/08/23TUEcollect0.01jonesSmoked 300g x 5DFSM0552
23138914/08/23TUEcollect0.00jonesMarinated 300g x 5DFMT0551
23139014/08/23TUEcollect0.01PlumberSmoked 300g x 5DFSM0551
23139114/08/23TUEcollect0.01PlumberSoft 250g x 12HOSO12121
23139221/08/23TUECOLLECT0.04smithsSuper Firm 900g x 9DCSF0992
23139321/08/23TUEcollect0.01jonesSuper Firm 300g x 5DFSF0554
23139421/08/23TUEcollect0.01jonesSmoked 300g x 5DFSM0552
23139521/08/23TUEcollect0.00jonesMarinated 300g x 5DFMT0551
23139621/08/23TUEcollect0.01PlumberSmoked 300g x 5DFSM0551
23139721/08/23TUEcollect0.01PlumberSoft 250g x 12HOSO12121

What I am trying to achieve is a way of finding out quickly how many bits I need of which product on a given day.
So, for instance, week commencing 14/8/23, how many pieces of DSM05 would I need?
Currently I'm checking each row, multiplying the quantity in a case by the number of cases required, then adding it all up at the end.
I think what I'm after is a formula where it looks at the date (day is unimportant) and, for that date, when product code is typed in, give a total number of pieces.
Is this possible at all?
Any help would be greatly appreciated, thank you :)
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Welcome to the Board!

Does this give you what you want?
1692110076670.png


Formula in cell O2:
Excel Formula:
=SUMPRODUCT(--(B2:B13=M2),--(I2:I13=N2),J2:J13,K2:K13)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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