LearnNewThings
New Member
- Joined
- Aug 27, 2019
- Messages
- 13
- Office Version
- 365
- Platform
- Windows
I have a data set that is sent to me from one of my suppliers, I have attached a sample of the data here. In this data set, there is one column with customer PN (Column B), 3 columns with quantities (Columns C, D, & E), and a column with purchase order information (Column F). Throughout the data, there are many instances where there are duplicate rows of the customer PN (Column B). I would like to sum up each QTY column for all given duplicated Customer PNs, and concatenate the PO information with a carriage return. I have manually provided an example of what I am trying to achieve below the yellow line. The data set is ~1000 lines long, so a manual approach is not ideal.
A couple of notes regarding the data:
A couple of notes regarding the data:
- Not all Customer PN have duplicate values
- There could be more than 2 rows with the same Customer PN
- Not all values in either of the three QTY values are greater than 0
- Not all duplicate Customer PN will have anything in the PO Info column
- I already have VBA scripts to manipulate some of the data, so adding more is not a big deal
Test Data.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | PART NUMBER | CUSTOMER P/N | ON HAND | QTY REQ | ON ORDER | PO INFO | ||
2 | 51-5737 | 160-00047 | 20.00 | 130.00 | 105.00 | 702840530201 105 2/10/2022 TECH ETCH, INC. CONFIRMED | ||
3 | 51-6213 | 160-00047 | 10.00 | 0.00 | 10.00 | 702840531231 10 2/10/2022 TECH ETCH, INC. CONFIRMED | ||
4 | 51-5735 | 160-00046 | 27.00 | 130.00 | 105.00 | 702840530101 105 2/10/2022 TECH ETCH, INC. CONFIRMED | ||
5 | 51-6132 | 160-00046 | 6.00 | 0.00 | 0.00 | |||
6 | 54-4375 | 430-00084 | 0.00 | 0.00 | 0.00 | |||
7 | 54-4499 | 430-00084 | 90.00 | 168.00 | 80.00 | 702841990601 80 2/16/2022 M&K ENGINEERING INC CONFIRMED | ||
8 | 54-4416 | 430-00087 | 0.00 | 0.00 | 0.00 | |||
9 | 54-4491 | 430-00087 | 0.00 | 0.00 | 0.00 | |||
10 | 54-4372 | 430-00108 | 2.00 | 0.00 | 0.00 | |||
11 | 54-4496 | 430-00108 | 94.00 | 168.00 | 75.00 | 702841990301 75 2/16/2022 M&K ENGINEERING INC CONFIRMED | ||
12 | 54-4370 | 431-00010 | 2.00 | 0.00 | 0.00 | |||
13 | 54-4495 | 431-00010 | 22.00 | 168.00 | 150.00 | 702841820101 150 2/14/2022 PDF CO CONFIRMED | ||
14 | 51-5729 | 437-00004 | 25.68 | 260.00 | 240.00 | 702840550701 240 2/14/2022 MCMASTER-CARR SUPPLY CO. CONFIRMED | ||
15 | 51-6110 | 437-00004 | 0.00 | 0.00 | 0.00 | |||
16 | 51-5716 | 437-00005 | 34.30 | 8.50 | 0.00 | |||
17 | 54-4451 | 437-00005 | 0.00 | 0.00 | 0.00 | |||
18 | 82-849 | 440-00014 | 0.00 | 0.00 | 0.00 | |||
19 | 93-3735 | 440-00014 | 0.00 | 0.00 | 0.00 | |||
20 | 82-848 | 440-00015 | 0.00 | 0.00 | 0.00 | |||
21 | 93-3734 | 440-00015 | 0.00 | 0.00 | 0.00 | |||
22 | 82-857 | 440-00035 | 0.00 | 0.00 | 0.00 | |||
23 | 93-3815 | 440-00035 | 0.00 | 0.00 | 0.00 | |||
24 | ||||||||
25 | ||||||||
26 | ||||||||
27 | CUSTOMER P/N | ON HAND | QTY REQ | ON ORDER | PO INFO | |||
28 | 160-00047 | 30.00 | 130.00 | 115.00 | 702840530201 105 2/10/2022 TECH ETCH, INC. CONFIRMED 702840531231 10 2/10/2022 TECH ETCH, INC. CONFIRMED | |||
Sheet2 |