Help with consolidation of groups and sum of each

LambVBA

New Member
Joined
Mar 28, 2014
Messages
16
This is my first post so please (kindly) let me know if I made an error in my question - and I apologize in advance if any are made.

I have 5 possible shifts (1-5) in this Shift column. For each Job Code in the 1st column I need to somehow merge each Job Code into 1 total 'qty' per each shift.

Here is a sample report of my 3 column table I am looking at:
Job CodeqtyShift
Received1251
Received531
Received401
Received871
Received274
Loaded434
Loaded1943
Loaded531
Loaded2704
Picked714
Picked1021
Picked251
Picked983
Picked752
Picked881
Picked13
Picked2253
Picked621
Picked244
Replenished94
Replenished31
Replenished51
Replenished204
Replenished281
Cases Picked8004
Cases Picked8752
Cases Picked4313
Transfer421
Transfer172
Transfer1043
Transfer1071
Transfer114
Putaway15

<tbody>
</tbody>

Expected (hopeful) outcome below...
For instance the 'Loaded' Job Code would look like this:
Job CodeqtyShift
Loaded531
Loaded1943
Loaded3134

<tbody>
</tbody>
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Put in F2:

=SUMPRODUCT(--($A$2:$A$34=E2),--($C$2:$C$34=G2),($B$2:$B$34))

E2 = "Job Code"
G2 = "Shift"

Assumed your data in ranges A1:C34 (include column header) as your sample table above
Hope it helps

Regards
 
Upvote 0
Hi and welcome to Mr Excel

Try a Pivot Table

Row Labels
Job Code
Shift

Values area
Qty

Something like this



A

B

C

3

Job Code​

Shift​

Sum of qty​

4

Cases Picked​

2​

875​

5

3​

431​

6

4​

800​

7

Cases Picked Total​

2106​

8

Loaded​

1​

53​

9

3​

194​

10

4​

313​

11

Loaded Total​

560​

12

Picked​

1​

277​

13

2​

75​

14

3​

324​

15

4​

95​

16

Picked Total​

771​

17

Putaway​

5​

1​

18

Putaway Total​

1​

19

Received​

1​

305​

20

4​

27​

21

Received Total​

332​

22

Replenished​

1​

36​

23

4​

29​

24

Replenished Total​

65​

25

Transfer​

1​

149​

26

2​

17​

27

3​

104​

28

4​

11​

29

Transfer Total​

281​

30

Grand Total​

4116​

<TBODY>
</TBODY>



Hope this helps

M.
 
Upvote 0
Took me a minute to apply this (my lack of skill, not yours). Works great! Thank you very much!
 
Upvote 0

Forum statistics

Threads
1,217,361
Messages
6,136,103
Members
449,991
Latest member
IslandofBDA

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