Hello Everyone,
I'm currently running into a situation where I'm using a SUMIFS formula to sum based on a set of three criteria that exists between two worksheets within a workbook. One of the criteria involves text where on one worksheet the text is 25 characters long and on the other worksheet that has my SUMIFS formula is only 20 characters long. I thought I could wrap that one criteria into a LEFT function that would only look at the first 20 characters in order to perform the match and then sum, but I keep running into an error.
Can anyone help me overcome this error some how?
I'm currently running into a situation where I'm using a SUMIFS formula to sum based on a set of three criteria that exists between two worksheets within a workbook. One of the criteria involves text where on one worksheet the text is 25 characters long and on the other worksheet that has my SUMIFS formula is only 20 characters long. I thought I could wrap that one criteria into a LEFT function that would only look at the first 20 characters in order to perform the match and then sum, but I keep running into an error.
Can anyone help me overcome this error some how?
Book4 - Test.xlsx | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Number | Name | Rep1 | Paid Amount | Test_Data Amount | ||
2 | 576916 | Customer A - Test Co | Rep A | 1,723.60 | 0.00 | ||
3 | 578107 | Customer U | Rep AB | 2,752.80 | 2,752.80 | ||
4 | 580390 | Customer A | Rep AB | 1,016.80 | 1,016.80 | ||
5 | 582249 | Customer A | Rep A | 2,418.00 | 2,418.00 | ||
6 | 583044 | Customer A | Rep AB | 1,822.80 | 1,822.80 | ||
7 | 586326 | Customer U | Rep AB | 2,021.20 | 2,021.20 | ||
8 | 587795 | Customer A | Rep AB | 2,777.60 | 2,777.60 | ||
9 | 587856 | Customer A | Rep AB | 248.00 | 248.00 | ||
10 | 589448 | Customer A | Rep AB | 1,488.00 | 1,488.00 | ||
11 | 591246 | Customer A | Rep A | 930.00 | 930.00 | ||
12 | 594666 | Customer B | Rep F | 919.80 | 919.80 | ||
13 | 595592 | Customer B | Rep F | 1,209.60 | 1,209.60 | ||
14 | 596598 | Customer B | Rep F | 415.80 | 415.80 | ||
15 | 602919 | Customer C - Test Co | No Rep | 882.00 | 0.00 | ||
16 | 605254 | Customer C | No Rep | 1,373.40 | 1,373.40 | ||
17 | 607582 | Customer D | Rep F | 0.00 | 4,158.00 | ||
18 | 606435 | Customer D | Rep F | 0.00 | 1,197.00 | ||
19 | 607693 | Customer F | Rep D | 1,312.00 | 1,512.00 | ||
20 | 607388 | Customer I | Rep A | 982.80 | 982.80 | ||
21 | 608791 | Customer G | No Rep | 529.20 | 529.20 | ||
22 | 609018 | Customer E | Rep D | 2,935.80 | 2,935.80 | ||
23 | 612210 | Customer A | Rep C | 1,423.80 | 1,423.80 | ||
24 | 610144 | Customer J | Rep D | 529.20 | 529.20 | ||
25 | 610154 | Customer J | Rep BC | 970.20 | 970.20 | ||
26 | 610856 | Customer E - Test Co | Rep D | 2,079.00 | 0.00 | ||
27 | 610418 | Customer K | Rep D | 997.60 | 997.60 | ||
28 | 611763 | Customer Y | Rep F | 1,373.40 | 1,373.40 | ||
29 | 613097 | Customer H | Rep E | 1,839.60 | 1,839.60 | ||
30 | 611574 | Customer X | Rep D | 1,751.40 | 1,751.40 | ||
31 | 612467 | Customer D | Rep F | 1,260.00 | 1,260.00 | ||
32 | 613731 | Customer Y | Rep BC | 1,096.20 | 1,096.20 | ||
33 | 612406 | Customer H | Rep E | 365.40 | 365.40 | ||
34 | 613633 | Customer C | No Rep | 1,814.40 | 1,814.40 | ||
35 | 614567 | Customer X | Rep BC | 378.00 | 378.00 | ||
36 | 612504 | Customer D | No Rep | 1,436.40 | 1,436.40 | ||
37 | 614447 | Customer X | Rep D | 508.40 | 508.40 | ||
38 | 612224 | Customer H | Rep E | 2,595.60 | 2,595.60 | ||
39 | 613209 | Customer H | Rep E | 1,713.60 | 1,713.60 | ||
40 | 614454 | Customer L | Rep F | 529.20 | 529.20 | ||
41 | 613226 | Customer T | No Rep | 0.00 | 2,381.40 | ||
42 | 613033 | Customer T | Rep C | 2,709.00 | 2,709.00 | ||
43 | 613648 | Customer S | Rep C | 1,131.20 | 1,131.20 | ||
44 | 612981 | Customer Z | Rep BC | 604.80 | 604.80 | ||
45 | 613452 | Customer H | Rep E | 2,091.60 | 2,091.60 | ||
46 | 613856 | Customer M | Rep C | 359.60 | 359.60 | ||
47 | 615717 | Customer L | Rep D | 1,486.80 | 1,486.80 | ||
48 | 613765 | Customer Z | No Rep | 831.60 | 831.60 | ||
49 | 613862 | Customer H | Rep E | 1,096.20 | 1,096.20 | ||
50 | 615199 | Customer T | Rep D | 458.80 | 458.80 | ||
51 | 613368 | Customer S | Rep BC | 1,020.60 | 1,020.60 | ||
52 | 615523 | Customer F | Rep C | 2,308.40 | 2,308.40 | ||
53 | 616648 | Customer E | Rep D | 1,927.80 | 1,927.80 | ||
54 | 615343 | Customer S | Rep D | 1,289.60 | 0.00 | ||
55 | 613450 | Customer G | No Rep | 781.20 | 781.20 | ||
56 | 612849 | Customer P | Rep D | 1,449.00 | 1,449.00 | ||
57 | 618209 | Customer Q | No Rep | 1,524.60 | 1,524.60 | ||
58 | 613924 | Customer Z | Rep BC | 1,562.40 | 1,562.40 | ||
59 | 616360 | Customer H | Rep E | 2,066.40 | 2,066.40 | ||
60 | 615589 | Customer L | Rep B | 2,394.00 | 2,394.00 | ||
61 | 613779 | Customer Q | Rep C | 415.80 | 415.80 | ||
62 | 614000 | Customer L | No Rep | 1,827.00 | 1,827.00 | ||
63 | 614034 | Customer R | Rep D | 1,612.00 | 1,612.00 | ||
64 | 615765 | Customer L | No Rep | 579.60 | 579.60 | ||
65 | 619357 | Customer H | Rep E | 3,110.40 | 3,110.40 | ||
66 | 616091 | Customer H | Rep E | 2,104.20 | 2,104.20 | ||
67 | 615309 | Customer N | Rep D | 396.80 | 396.80 | ||
68 | 618464 | Customer P | Rep C | 1,345.20 | 1,345.20 | ||
69 | 614174 | Customer Z | Rep BC | 730.80 | 730.80 | ||
70 | 619080 | Customer G | No Rep | 1,915.20 | 1,915.20 | ||
71 | 616085 | Customer H | Rep E | 1,726.20 | 1,726.20 | ||
72 | 618405 | Customer P | No Rep | 1,713.60 | 1,713.60 | ||
73 | 616693 | Customer M | Rep C | 1,322.40 | 1,322.40 | ||
74 | 616358 | Customer P | Rep C | 1,686.40 | 1,686.40 | ||
75 | 618403 | Customer N | Rep D | 1,894.40 | 1,894.40 | ||
76 | 619850 | Customer E | Rep B | 652.80 | 652.80 | ||
77 | 618517 | Customer E | Rep D | 2,726.40 | 2,726.40 | ||
78 | 620420 | Customer O | Rep C | 2,145.05 | 2,845.80 | ||
79 | 618196 | Customer R | Rep B | 640.00 | 640.00 | ||
80 | 618298 | Customer L | Rep D | 1,164.80 | 1,164.80 | ||
81 | 619871 | Customer V | Rep C | 2,714.00 | 2,714.00 | ||
82 | 619882 | Customer O | Rep C | 1,083.00 | 1,083.00 | ||
83 | 619418 | Customer F - Test Co | No Rep | 601.60 | 0.00 | ||
84 | 619775 | Customer V | Rep C | 1,451.40 | 1,451.40 | ||
85 | 616370 | Customer H | Rep E | 1,171.80 | 1,171.80 | ||
86 | 619607 | Customer E | Rep D | 2,393.60 | 2,393.60 | ||
87 | 619473 | Customer E | Rep D | 1,664.00 | 1,664.00 | ||
88 | 620410 | Customer L | Rep D | 972.80 | 972.80 | ||
89 | 617337 | Customer V | Rep D | 550.40 | 550.40 | ||
90 | 617475 | Customer M | No Rep | 1,203.20 | 1,203.20 | ||
91 | 616744 | Customer H | Rep E | 907.20 | 907.20 | ||
92 | 619914 | Customer N | Rep E | 660.80 | 660.80 | ||
93 | 619726 | Customer N | Rep C | 2,368.80 | 2,368.80 | ||
94 | 619919 | Customer P | Rep D | 460.80 | 460.80 | ||
95 | 619629 | Customer M | Rep C | 1,140.00 | 1,140.00 | ||
96 | 619259 | Customer S | No Rep | 1,713.20 | 1,843.20 | ||
97 | 617778 | Customer S | Rep C | 396.80 | 396.80 | ||
98 | 620408 | Customer V - Test Co | No Rep | 1,916.20 | 0.00 | ||
99 | 617457 | Customer T | Rep F | 294.40 | 294.40 | ||
100 | 620564 | Customer T | Rep C | 2,029.20 | 2,029.20 | ||
Reconciliation |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E2:E100 | E2 | =SUMIFS(Test_Data!$M:$M,Test_Data!$B:$B,A2,Test_Data!$E:$E,B2,Test_Data!$R:$R,C2) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A:A | Cell Value | duplicates | text | NO |
Book4 - Test.xlsx | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | E | M | R | S | T | ||||||||||||||||
1 | Report Submission Date | Invoice # | Account Name | CMA Inv. Amount | Rep Assigned | Rep Supervisor | DBD Rep | |||||||||||||||
2 | 7/27/2023 | 576916 | Customer A - Test Company | $1,723.60 | Rep A | Rep AB | No Rep | |||||||||||||||
3 | 8/3/2023 | 578107 | Customer U | $2,752.80 | Rep AB | Rep AB | No Rep | |||||||||||||||
4 | 8/28/2023 | 580390 | Customer A | $1,016.80 | Rep AB | Rep AB | No Rep | |||||||||||||||
5 | 9/12/2023 | 582249 | Customer A | $2,418.00 | Rep A | Rep AB | No Rep | |||||||||||||||
6 | 9/20/2023 | 583044 | Customer A | $1,822.80 | Rep AB | Rep AB | No Rep | |||||||||||||||
7 | 10/17/2023 | 586326 | Customer U | $2,021.20 | Rep AB | Rep AB | No Rep | |||||||||||||||
8 | 10/31/2023 | 587795 | Customer A | $2,777.60 | Rep AB | Rep AB | No Rep | |||||||||||||||
9 | 11/1/2023 | 587856 | Customer A | $248.00 | Rep AB | Rep AB | No Rep | |||||||||||||||
10 | 11/14/2023 | 589448 | Customer A | $1,488.00 | Rep AB | Rep AB | No Rep | |||||||||||||||
11 | 12/7/2023 | 591246 | Customer A | $930.00 | Rep A | Rep AB | No Rep | |||||||||||||||
12 | 1/5/2024 | 594666 | Customer B | $919.80 | Rep F | Rep AB | No Rep | |||||||||||||||
13 | 1/22/2024 | 595592 | Customer B | $1,209.60 | Rep F | Rep AB | No Rep | |||||||||||||||
14 | 1/27/2024 | 596598 | Customer B | $415.80 | Rep F | Rep AB | No Rep | |||||||||||||||
15 | 3/20/2024 | 602919 | Customer C - Test Company | $882.00 | No Rep | No Rep | Rep BC | |||||||||||||||
16 | 4/2/2024 | 605254 | Customer C | $1,373.40 | No Rep | No Rep | Rep BC | |||||||||||||||
17 | 4/17/2024 | 607582 | Customer D | $4,158.00 | Rep F | Rep AB | Rep BC | |||||||||||||||
18 | 4/13/2024 | 606435 | Customer D | $1,197.00 | Rep F | Rep AB | Rep BC | |||||||||||||||
19 | 5/2/2024 | 607693 | Customer F | $1,512.00 | Rep D | Rep AB | No Rep | |||||||||||||||
20 | 4/30/2024 | 607388 | Customer I | $982.80 | Rep A | Rep AB | No Rep | |||||||||||||||
21 | 4/30/2024 | 608791 | Customer G | $529.20 | No Rep | No Rep | Rep BC | |||||||||||||||
22 | 5/13/2024 | 609018 | Customer E | $2,935.80 | Rep D | Rep AB | Rep BC | |||||||||||||||
23 | 5/26/2024 | 612210 | Customer A | $1,423.80 | Rep C | Rep AB | No Rep | |||||||||||||||
24 | 5/21/2024 | 610144 | Customer J | $529.20 | Rep D | Rep BC | No Rep | |||||||||||||||
25 | 5/23/2024 | 610154 | Customer J | $970.20 | Rep BC | Rep BC | No Rep | |||||||||||||||
26 | 5/14/2024 | 610856 | Customer E - Test Company | $2,079.00 | Rep D | Rep AB | Rep BC | |||||||||||||||
27 | 5/27/2024 | 610418 | Customer K | $997.60 | Rep D | Rep AB | Rep CD | |||||||||||||||
28 | 5/21/2024 | 611763 | Customer Y | $1,373.40 | Rep F | Rep BC | Rep CD | |||||||||||||||
29 | 6/4/2024 | 613097 | Customer H | $1,839.60 | Rep E | Rep AB | Rep CD | |||||||||||||||
30 | 5/22/2024 | 611574 | Customer X | $1,751.40 | Rep D | Rep AB | No Rep | |||||||||||||||
31 | 5/28/2024 | 612467 | Customer D | $1,260.00 | Rep F | Rep AB | Rep BC | |||||||||||||||
32 | 6/14/2024 | 613731 | Customer Y | $1,096.20 | Rep BC | Rep BC | No Rep | |||||||||||||||
33 | 6/12/2024 | 612406 | Customer H | $365.40 | Rep E | Rep AB | Rep CD | |||||||||||||||
34 | 6/10/2024 | 613633 | Customer C | $1,814.40 | No Rep | No Rep | Rep BC | |||||||||||||||
35 | 6/21/2024 | 614567 | Customer X | $378.00 | Rep BC | Rep BC | No Rep | |||||||||||||||
36 | 5/29/2024 | 612504 | Customer D | $1,436.40 | No Rep | No Rep | Rep BC | |||||||||||||||
37 | 6/13/2024 | 614447 | Customer X | $508.40 | Rep D | Rep AB | No Rep | |||||||||||||||
38 | 6/12/2024 | 612224 | Customer H | $2,595.60 | Rep E | Rep AB | Rep CD | |||||||||||||||
39 | 6/5/2024 | 613209 | Customer H | $1,713.60 | Rep E | Rep AB | Rep CD | |||||||||||||||
40 | 6/17/2024 | 614454 | Customer L | $529.20 | Rep F | Rep BC | No Rep | |||||||||||||||
41 | 6/19/2024 | 613226 | Customer T | $2,381.40 | No Rep | No Rep | Rep CD | |||||||||||||||
42 | 6/3/2024 | 613033 | Customer T | $2,709.00 | Rep C | Rep AB | No Rep | |||||||||||||||
43 | 6/8/2024 | 613648 | Customer S | $1,131.20 | Rep C | Rep AB | No Rep | |||||||||||||||
44 | 6/3/2024 | 612981 | Customer Z | $604.80 | Rep BC | Rep BC | No Rep | |||||||||||||||
45 | 6/10/2024 | 613452 | Customer H | $2,091.60 | Rep E | Rep AB | Rep CD | |||||||||||||||
46 | 6/28/2024 | 613856 | Customer M | $359.60 | Rep C | Rep AB | Rep CD | |||||||||||||||
47 | 6/21/2024 | 615717 | Customer L | $1,486.80 | Rep D | Rep AB | No Rep | |||||||||||||||
48 | 6/10/2024 | 613765 | Customer Z | $831.60 | No Rep | No Rep | Rep BC | |||||||||||||||
49 | 6/28/2024 | 613862 | Customer H | $1,096.20 | Rep E | Rep AB | Rep CD | |||||||||||||||
50 | 6/27/2024 | 615199 | Customer T | $458.80 | Rep D | Rep AB | Rep BC | |||||||||||||||
51 | 6/7/2024 | 613368 | Customer S | $1,020.60 | Rep BC | Rep BC | No Rep | |||||||||||||||
52 | 6/20/2024 | 615523 | Customer F | $2,308.40 | Rep C | Rep AB | No Rep | |||||||||||||||
53 | 6/29/2024 | 616648 | Customer E | $1,927.80 | Rep D | Rep AB | Rep BC | |||||||||||||||
54 | 7/1/2024 | 615343 | Customer S - Test Company | $1,289.60 | Rep D | Rep AB | Rep BC | |||||||||||||||
55 | 6/6/2024 | 613450 | Customer G | $781.20 | No Rep | No Rep | Rep BC | |||||||||||||||
56 | 6/18/2024 | 612849 | Customer P | $1,449.00 | Rep D | Rep AB | No Rep | |||||||||||||||
57 | 7/10/2024 | 618209 | Customer Q | $1,524.60 | No Rep | No Rep | Rep CD | |||||||||||||||
58 | 6/10/2024 | 613924 | Customer Z | $1,562.40 | Rep BC | Rep BC | No Rep | |||||||||||||||
59 | 6/26/2024 | 616360 | Customer H | $2,066.40 | Rep E | Rep AB | Rep CD | |||||||||||||||
60 | 6/18/2024 | 615589 | Customer L | $2,394.00 | Rep B | Rep AB | No Rep | |||||||||||||||
61 | 6/25/2024 | 613779 | Customer Q | $415.80 | Rep C | Rep AB | No Rep | |||||||||||||||
62 | 6/12/2024 | 614000 | Customer L | $1,827.00 | No Rep | No Rep | Rep CD | |||||||||||||||
63 | 6/11/2024 | 614034 | Customer R | $1,612.00 | Rep D | Rep AB | No Rep | |||||||||||||||
64 | 7/3/2024 | 615765 | Customer L | $579.60 | No Rep | No Rep | Rep CD | |||||||||||||||
65 | 7/18/2024 | 619357 | Customer H | $3,110.40 | Rep E | Rep AB | Rep CD | |||||||||||||||
66 | 6/21/2024 | 616091 | Customer H | $2,104.20 | Rep E | Rep AB | Rep CD | |||||||||||||||
67 | 7/16/2024 | 615309 | Customer N | $396.80 | Rep D | Rep AB | No Rep | |||||||||||||||
68 | 7/12/2024 | 618464 | Customer P | $1,345.20 | Rep C | Rep AB | No Rep | |||||||||||||||
69 | 7/2/2024 | 614174 | Customer Z | $730.80 | Rep BC | Rep BC | No Rep | |||||||||||||||
70 | 7/15/2024 | 619080 | Customer G | $1,915.20 | No Rep | No Rep | Rep CD | |||||||||||||||
71 | 6/21/2024 | 616085 | Customer H | $1,726.20 | Rep E | Rep AB | Rep CD | |||||||||||||||
72 | 7/12/2024 | 618405 | Customer P | $1,713.60 | No Rep | No Rep | Rep CD | |||||||||||||||
73 | 7/1/2024 | 616693 | Customer M | $1,322.40 | Rep C | Rep AB | No Rep | |||||||||||||||
74 | 7/1/2024 | 616358 | Customer P | $1,686.40 | Rep C | Rep AB | No Rep | |||||||||||||||
75 | 7/16/2024 | 618403 | Customer N | $1,894.40 | Rep D | Rep AB | No Rep | |||||||||||||||
76 | 7/18/2024 | 619850 | Customer E | $652.80 | Rep B | Rep AB | No Rep | |||||||||||||||
77 | 7/16/2024 | 618517 | Customer E | $2,726.40 | Rep D | Rep AB | Rep BC | |||||||||||||||
78 | 7/27/2024 | 620420 | Customer O | $2,845.80 | Rep C | Rep AB | No Rep | |||||||||||||||
79 | 7/10/2024 | 618196 | Customer R | $640.00 | Rep B | Rep AB | No Rep | |||||||||||||||
80 | 7/10/2024 | 618298 | Customer L | $1,164.80 | Rep D | Rep AB | No Rep | |||||||||||||||
81 | 7/24/2024 | 619871 | Customer V | $2,714.00 | Rep C | Rep AB | No Rep | |||||||||||||||
82 | 7/18/2024 | 619882 | Customer O | $1,083.00 | Rep C | Rep AB | No Rep | |||||||||||||||
83 | 8/16/2024 | 619418 | Customer F - Test Company | $601.60 | No Rep | No Rep | Rep CD | |||||||||||||||
84 | 7/23/2024 | 619775 | Customer V | $1,451.40 | Rep C | Rep AB | No Rep | |||||||||||||||
85 | 6/26/2024 | 616370 | Customer H | $1,171.80 | Rep E | Rep AB | Rep CD | |||||||||||||||
86 | 7/21/2024 | 619607 | Customer E | $2,393.60 | Rep D | Rep AB | Rep BC | |||||||||||||||
87 | 7/22/2024 | 619473 | Customer E | $1,664.00 | Rep D | Rep AB | Rep BC | |||||||||||||||
88 | 7/27/2024 | 620410 | Customer L | $972.80 | Rep D | Rep AB | No Rep | |||||||||||||||
89 | 7/30/2024 | 617337 | Customer V | $550.40 | Rep D | Rep AB | Rep CD | |||||||||||||||
90 | 7/31/2024 | 617475 | Customer M | $1,203.20 | No Rep | No Rep | Rep CD | |||||||||||||||
91 | 7/1/2024 | 616744 | Customer H | $907.20 | Rep E | Rep AB | Rep CD | |||||||||||||||
92 | 8/7/2024 | 619914 | Customer N | $660.80 | Rep E | Rep AB | No Rep | |||||||||||||||
93 | 7/23/2024 | 619726 | Customer N | $2,368.80 | Rep C | Rep AB | No Rep | |||||||||||||||
94 | 7/14/2024 | 619919 | Customer P | $460.80 | Rep D | Rep AB | No Rep | |||||||||||||||
95 | 7/20/2024 | 619629 | Customer M | $1,140.00 | Rep C | Rep AB | No Rep | |||||||||||||||
96 | 7/18/2024 | 619259 | Customer S | $1,843.20 | No Rep | No Rep | Rep CD | |||||||||||||||
97 | 8/2/2024 | 617778 | Customer S | $396.80 | Rep C | Rep AB | No Rep | |||||||||||||||
98 | 7/26/2024 | 620408 | Customer V - Test Company | $1,916.20 | No Rep | No Rep | Rep BC | |||||||||||||||
99 | 7/30/2024 | 617457 | Customer T | $294.40 | Rep F | Rep AB | No Rep | |||||||||||||||
100 | 7/30/2024 | 620564 | Customer T | $2,029.20 | Rep C | Rep AB | No Rep | |||||||||||||||
Test_Data |
Cell Formulas | ||
---|---|---|
Range | Formula | |
M2:M100 | M2 | =(F2-G2-H2-I2-J2-K2-L2) |