We've to generate each individual report like Table 02 based on Branch in next sheet, using Table 01 Sheet (Sales) Table Data through VBA While Sheet(Report) Activate,
Table 01
Table 02
Table 01
Date | Branch | Invoice No | Delivery Date | Riders Name | Amount | Remark |
28/06/2020 | A | 2532 | 28/06/2020 | James | $ 125.90 | |
08/07/2020 | A | 2656 | 08/07/2020 | Fero | $ 153.30 | |
06/08/2020 | B | 2533 | 06/08/2020 | Gorge | $ 180.70 | |
15/09/2020 | A | 2657 | 15/09/2020 | Rico | $ 208.10 | |
05/10/2020 | B | 2534 | 05/10/2020 | Bolt | $ 235.50 | |
08/10/2020 | A | 2658 | 08/10/2020 | Fero | $ 161.15 | |
08/10/2020 | C | 2535 | 08/10/2020 | Fero | $ 188.55 | |
10/10/2020 | A | 2659 | 10/10/2020 | James | $ 215.95 | |
10/10/2020 | C | 2536 | 10/10/2020 | James | $ 243.35 | |
10/10/2020 | A | 2547 | 10/10/2020 | Fero | $ 485.00 | |
10/10/2020 | A | 5241 | 10/10/2020 | James | $ 421.00 | |
10/10/2020 | A | 5247 | 10/10/2020 | Gorge | $ 421.00 | |
13/10/2020 | B | 2660 | 13/10/2020 | Gorge | $ 270.75 | |
13/10/2020 | A | 2537 | 13/10/2020 | Gorge | $ 298.15 | |
17/10/2020 | A | 2661 | 17/10/2020 | Rico | $ 325.55 | |
17/10/2020 | B | 2538 | 17/10/2020 | Bolt | $ 352.95 | |
20/10/2020 | A | 2662 | 20/10/2020 | Fero | $ 380.35 | |
20/10/2020 | B | 2539 | 20/10/2020 | Gorge | $ 388.20 | |
22/10/2020 | A | 2663 | 22/10/2020 | Gorge | $ 415.60 | |
22/10/2020 | C | 2540 | 22/10/2020 | Gorge | $ 443.00 | |
22/10/2020 | A | 2664 | 22/10/2020 | Bolt | $ 470.40 | |
24/10/2020 | C | 2541 | 24/10/2020 | Fero | $ 497.80 | |
27/10/2020 | B | 2665 | 27/10/2020 | Bolt | $ 525.20 | |
04/11/2020 | A | 2542 | 04/11/2020 | Fero | $ 552.60 | |
30/11/2020 | B | 2666 | 30/11/2020 | Gorge | $ 580.00 |
Table 02
ALL BRANCH | Branch A | Branch B | Branch C | ||||||||||||
Date | Branch | Riders Name | Count | Date | Riders Name | Count | Date | Riders Name | Count | Date | Riders Name | Count | |||
28/06/2020 | A | James | 1 | 28/06/2020 | James | 1 | 28/06/2020 | 28/06/2020 | |||||||
08/07/2020 | A | Fero | 1 | 08/07/2020 | Fero | 1 | 08/07/2020 | 08/07/2020 | |||||||
06/08/2020 | B | Gorge | 1 | 06/08/2020 | 06/08/2020 | Gorge | 1 | 06/08/2020 | |||||||
15/09/2020 | A | Rico | 1 | 15/09/2020 | Rico | 1 | 15/09/2020 | 15/09/2020 | |||||||
05/10/2020 | B | Bolt | 1 | 05/10/2020 | 05/10/2020 | Bolt | 1 | 05/10/2020 | |||||||
08/10/2020 | A | Fero | 2 | 08/10/2020 | Fero | 2 | 08/10/2020 | 08/10/2020 | |||||||
10/10/2020 | A | James | 2 | 10/10/2020 | James | 2 | 10/10/2020 | 10/10/2020 | |||||||
10/10/2020 | C | James | 1 | 10/10/2020 | 10/10/2020 | 10/10/2020 | James | 1 | |||||||
10/10/2020 | A | Fero | 1 | 10/10/2020 | Fero | 1 | 10/10/2020 | 10/10/2020 | |||||||
10/10/2020 | A | Gorge | 1 | 10/10/2020 | Gorge | 1 | 10/10/2020 | 10/10/2020 | |||||||
13/10/2020 | A | Gorge | 1 | 13/10/2020 | Gorge | 1 | 13/10/2020 | 13/10/2020 | |||||||
13/10/2020 | B | Gorge | 1 | 13/10/2020 | 13/10/2020 | Gorge | 1 | 13/10/2020 | |||||||
17/10/2020 | A | Rico | 1 | 17/10/2020 | Rico | 1 | 17/10/2020 | 17/10/2020 | |||||||
17/10/2020 | B | Bolt | 1 | 17/10/2020 | 17/10/2020 | Bolt | 1 | 17/10/2020 | |||||||
20/10/2020 | A | Fero | 1 | 20/10/2020 | Fero | 1 | 20/10/2020 | 20/10/2020 | |||||||
20/10/2020 | B | Gorge | 1 | 20/10/2020 | 20/10/2020 | Gorge | 1 | 20/10/2020 | |||||||
22/10/2020 | A | Gorge | 1 | 22/10/2020 | Gorge | 1 | 22/10/2020 | 22/10/2020 | |||||||
22/10/2020 | C | Rico | 1 | 22/10/2020 | 22/10/2020 | 22/10/2020 | Rico | 1 | |||||||
22/10/2020 | A | Bolt | 1 | 22/10/2020 | Bolt | 1 | 22/10/2020 | 22/10/2020 | |||||||
24/10/2020 | C | Fero | 1 | 24/10/2020 | 24/10/2020 | 24/10/2020 | Fero | 1 | |||||||
27/10/2020 | B | Bolt | 27/10/2020 | 27/10/2020 | Bolt | 27/10/2020 | |||||||||
04/11/2020 | A | Fero | 1 | 04/11/2020 | Fero | 1 | 04/11/2020 | 04/11/2020 | |||||||
30/11/2020 | B | Gorge | 1 | 30/11/2020 | 30/11/2020 | Gorge | 1 | 30/11/2020 |