bigmacfann
New Member
- Joined
- Aug 26, 2005
- Messages
- 48
Hello,
Every month, I get the below table sent to me (Columns A-E) which varies in the number of records it contains. Sometimes there are only 3 or 4 rows of entries, and sometimes there can be as many as 250 rows of entries. After I do my work on the sheet, I am left with what is in Columns G-J. What I am doing is looking for check numbers in Column B which have the same number then combining the Job # in Column I separated with a comma and an ampersand between the last 2 job numbers (as you can see in cell I23. I am also taking the totals in Column E and adding them up into Column J for the check numbers which match. Can anyone help me with a VBA code to do this automatically?
Every month, I get the below table sent to me (Columns A-E) which varies in the number of records it contains. Sometimes there are only 3 or 4 rows of entries, and sometimes there can be as many as 250 rows of entries. After I do my work on the sheet, I am left with what is in Columns G-J. What I am doing is looking for check numbers in Column B which have the same number then combining the Job # in Column I separated with a comma and an ampersand between the last 2 job numbers (as you can see in cell I23. I am also taking the totals in Column E and adding them up into Column J for the check numbers which match. Can anyone help me with a VBA code to do this automatically?
Deposit Detail - October 2024.xlsx | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | Date | Check Num | Name | Job # | Amount | Date | Name | Project # | Amount Paid | |||
2 | 10/09/2024 | 9905208109 | Contractor 1 | 24-755 | -$2,140.00 | 10/09/2024 | Contractor 1 | 24-755 & 24-750 | $3,590.00 | |||
3 | 10/09/2024 | 9905208109 | Contractor 1 | 24-750 | -$1,450.00 | 10/09/2024 | Contractor 10 | 24-738 | $3,300.00 | |||
4 | 10/09/2024 | 9363 | Contractor 10 | 24-738 | -$3,300.00 | 10/09/2024 | Contractor 11 | 23-441 | $45,584.10 | |||
5 | 10/09/2024 | 0070782 | Contractor 11 | 23-441 | -$45,584.10 | 10/09/2024 | Contractor 14 | 24-753 | $1,200.00 | |||
6 | 10/09/2024 | 0000005069 | Contractor 14 | 24-753 | -$1,200.00 | 10/09/2024 | Contractor 15 | 23-484 | $24,073.20 | |||
7 | 10/09/2024 | 25433 | Contractor 15 | 23-484 | -$24,073.20 | 10/09/2024 | Contractor 16 | 24-737 | $1,380.00 | |||
8 | 10/09/2024 | 5500 | Contractor 16 | 24-737 | -$1,380.00 | 10/09/2024 | Contractor 18 | 23-629 | $13,497.75 | |||
9 | 10/09/2024 | 18177 | Contractor 18 | 23-629 | -$13,497.75 | 10/09/2024 | Contractor 2 | 24-771 | $9,390.00 | |||
10 | 10/09/2024 | 12127 | Contractor 2 | 24-771 | -$9,390.00 | 10/09/2024 | Contractor 20 | 24-794 | $2,060.00 | |||
11 | 10/09/2024 | 7132 | Contractor 20 | 24-794 | -$2,060.00 | 10/09/2024 | Contractor 4 | 8-241, 14-578 & 18-549 | $32,305.00 | |||
12 | 10/09/2024 | 567316 | Contractor 4 | 8-241 | -$25,984.00 | 10/09/2024 | Contractor 7 | 24-801 | $15,000.00 | |||
13 | 10/09/2024 | 567316 | Contractor 4 | 14-578 | -$6,085.00 | 10/09/2024 | Contractor 8 | 23-624 | $11,227.00 | |||
14 | 10/09/2024 | 567316 | Contractor 4 | 18-549 | -$236.00 | 10/09/2024 | Contractor 9 | 24-639 | $48,085.20 | |||
15 | 10/09/2024 | 47954 | Contractor 7 | 24-801 | -$15,000.00 | 10/25/2024 | Contractor 12 | 24-727 | $2,540.00 | |||
16 | 10/09/2024 | 321107 | Contractor 8 | 23-624 | -$11,227.00 | 10/25/2024 | Contractor 13 | 24-760 | $7,800.00 | |||
17 | 10/09/2024 | 0000009668 | Contractor 9 | 24-639 | -$48,085.20 | 10/25/2024 | Contractor 13 | 24-740 | $3,020.00 | |||
18 | 10/25/2024 | 11497 | Contractor 12 | 24-727 | -$2,540.00 | 10/25/2024 | Contractor 13 | 24-752 | $2,340.00 | |||
19 | 10/25/2024 | 7210511133 | Contractor 13 | 24-760 | -$7,800.00 | 10/25/2024 | Contractor 13 | 24-751 | $820.00 | |||
20 | 10/25/2024 | 7210632222 | Contractor 13 | 24-740 | -$3,020.00 | 10/25/2024 | Contractor 13 | 24-759 | $1,870.00 | |||
21 | 10/25/2024 | 7210632223 | Contractor 13 | 24-752 | -$2,340.00 | 10/25/2024 | Contractor 13 | 24-769 | $4,180.00 | |||
22 | 10/25/2024 | 7210632224 | Contractor 13 | 24-751 | -$820.00 | 10/25/2024 | Contractor 15 | 23-484 | $7,002.45 | |||
23 | 10/25/2024 | 7210839665 | Contractor 13 | 24-759 | -$1,870.00 | 10/25/2024 | Contractor 17 | 24-678, 24-693, 24-679 & 24-725 | $39,320.60 | |||
24 | 10/25/2024 | 7210839670 | Contractor 13 | 24-769 | -$4,180.00 | 10/25/2024 | Contractor 19 | 22-298 | $8,215.00 | |||
25 | 10/25/2024 | 25598 | Contractor 15 | 23-484 | -$7,002.45 | 10/25/2024 | Contractor 4 | 8-241, 14-578 & 18-549 | $23,460.00 | |||
26 | 10/25/2024 | 17338 | Contractor 17 | 24-678 | -$11,050.00 | 10/25/2024 | Contractor 5 | 24-707 | $340.00 | |||
27 | 10/25/2024 | 17338 | Contractor 17 | 24-693 | -$8,660.00 | 10/25/2024 | Contractor 5 | 24-741 | $3,150.00 | |||
28 | 10/25/2024 | 17338 | Contractor 17 | 24-679 | -$11,550.60 | 10/25/2024 | Contractor 6 | 24-690 | $15,871.00 | |||
29 | 10/25/2024 | 17338 | Contractor 17 | 24-679 | -$1,380.00 | 10/31/2024 | Contractor 14 | 24-747 | $5,580.00 | |||
30 | 10/25/2024 | 17338 | Contractor 17 | 24-725 | -$6,680.00 | 10/31/2024 | Contractor 14 | 24-722 | $35,046.00 | |||
31 | 10/25/2024 | 2474 | Contractor 19 | 22-298 | -$8,215.00 | 10/31/2024 | Contractor 3 | 24-765 | $7,650.00 | |||
32 | 10/25/2024 | 570702 | Contractor 4 | 8-241 | -$18,375.00 | |||||||
33 | 10/25/2024 | 570702 | Contractor 4 | 14-578 | -$4,466.00 | |||||||
34 | 10/25/2024 | 570702 | Contractor 4 | 18-549 | -$619.00 | |||||||
35 | 10/25/2024 | 862408284 | Contractor 5 | 24-707 | -$340.00 | |||||||
36 | 10/25/2024 | 862408286 | Contractor 5 | 24-741 | -$3,150.00 | |||||||
37 | 10/25/2024 | 07152200 | Contractor 6 | 24-690 | -$15,871.00 | |||||||
38 | 10/31/2024 | 0000001412 | Contractor 14 | 24-747 | -$5,580.00 | |||||||
39 | 10/31/2024 | 0000002836 | Contractor 14 | 24-722 | -$35,046.00 | |||||||
40 | 10/31/2024 | 1111 | Contractor 3 | 24-765 | -$7,650.00 | |||||||
Sheet1 |