I have a table of data as below:
<tbody>
</tbody>
I need to produce a table from this where the number of Pieces in Column F are totalled where the Company, Add1 and Post Code values in Columns A,B and D are exactly the same.
The following Rows would be considered as matching.
2 and 7
3 and 9
6 and 8
So the resultant data would need to look like:
<tbody>
</tbody>
If this can be done, I will then need to make it work in VBA.
Is it possible?
A | B | C | D | E | F | |
1 | Company | Add1 | Town | Postcode | Region | Pieces |
2 | ABC | 1 Alpha Street | Hull | HU1 2PP | 1 | 2 |
3 | DEF | 23 Delta Road | Leeds | LE32 2UH | 2 | 3 |
4 | ABC | 3 Bravo Close | Hull | HU1 4HY | 1 | 1 |
5 | DEF | 4 Echo Lane | Derby | DE3 8GF | 3 | 4 |
6 | GHI | 8 Foxtrot Avenue | Halifax | HA1 2RR | 4 | 3 |
7 | ABC | 1 Alpha Street | Hull | HU1 2PP | 1 | 2 |
8 | GHI | 8 Foxtrot Avenue | Halifax | HA1 2RR | 4 | 6 |
9 | DEF | 23 Delta Road | Leeds | LE32 2UH | 2 | 4 |
10 | ABC | 3 Bravo Close | Corby | CO17 6WS | 5 | 3 |
11 | GHI | 8 Foxtrot Avenue | Hessle | HU3 3WQ | 1 | 4 |
<tbody>
</tbody>
I need to produce a table from this where the number of Pieces in Column F are totalled where the Company, Add1 and Post Code values in Columns A,B and D are exactly the same.
The following Rows would be considered as matching.
2 and 7
3 and 9
6 and 8
So the resultant data would need to look like:
A | B | C | D | E | F | |
1 | Company | Add1 | Town | Postcode | Region | Pieces |
2 | ABC | 1 Alpha Street | Hull | HU1 2PP | 1 | 4 |
3 | DEF | 23 Delta Road | Leeds | LE32 2UH | 2 | 7 |
4 | ABC | 3 Bravo Close | Hull | HU1 4HY | 1 | 1 |
5 | DEF | 4 Echo Lane | Derby | DE3 8GF | 3 | 4 |
6 | GHI | 8 Foxtrot Avenue | Halifax | HA1 2RR | 4 | 9 |
7 | ABC | Bravo Close | Corby | CO17 6WS | 5 | 3 |
8 | GHI | 8 Foxtrot Avenue | Hessle | HU3 3WQ | 1 | 4 |
<tbody>
</tbody>
If this can be done, I will then need to make it work in VBA.
Is it possible?