Finding matching positive and negative numbers

Rambu

New Member
Joined
Jul 7, 2022
Messages
11
Office Version
  1. 2016
Platform
  1. Windows
I want to match the data of positive and negative and sort out the residual value on the basis of reference Id's.For e.g
Reference ID and Amount
4567 -$10
4567 $5
4567 $2
4567 $3
4567 $5
6754 $3
6754 $4
6754 -$12
6754 $6
6754 $2

Above two reference ID after calculating in 4567 the residual amount is 5 and
simultaneously in reference ID 6754 residual is 3.So is there any solution that values settingoff to zero should get highlighted or which are not getting offset amount highlighted on the basis of reference ID. Not only the same value offset also by the breakup amount adding up setoff as above example.
 
Below is the data sample in which I have applied your formula, But highlighted cells which are coming, the amount is not matching with actual total figure. In some of them formulae is not catching.Please look into it.
530279
280.38​
530279
-146.95​
530279
146.95​
530279
-117.56​
530279
-280.38​
532224
-281.31​
532224
387.09​
532224
-387.09​
532376
-152.82​
535274
-594.85​
535274
594.85​
535274
-187.42​
546227
-298.13​
547390
-237.85​
547390
237.85​
547390
-139.89​
547390
-112.65​
547390
139.89​
547634
-276.86​
547634
-225.92​
547634
276.86​
547634
-200.45​
547634
225.92​
547915
-533.73​
548216
428.18​
548216
-428.18​
548216
-384.08​
548216
-318.37​
548216
384.08​
556381
-152.82​
558357
-156.72​
559299
-2750.48​
559299
2750.48​
559299
-2691.39​
559299
2691.39​
559299
-1234.27​
559299
-1212.22​
559299
1234.27​
559518
-2250.87​
559518
2250.87​
559518
-2040.87​
559518
2040.87​
559518
-499.89​
559518
854.72​
559518
-854.72​
559520
-17934.30​
559520
-794.90​
559520
-794.90​
559520
13394.22​
559520
-9085.76​
559520
-3513.56​
559520
17934.30​
559520
-17728.30​
559520
17728.30​
559520
13724.97​
559520
-13928.81​
559520
-13724.97​
559520
13928.81​
559737
-1128.47​
559737
1128.47​
559737
-1104.46​
559786
-2631.15​
559786
2631.15​
559786
-2156.00​
560995
1042.53​
560995
-1042.53​
560995
-879.07​
560995
879.07​
560995
-566.68​
560995
566.68​
560995
-509.36​
561457
-1457.45​
561457
1590.98​
561457
-4233.94​
561457
-597.17​
561457
-431.19​
561457
-366.83​
561457
4600.78​
561457
1457.45​
561457
-1590.98​
561649
-1674.68​
561649
1694.26​
561649
-62.68​
561649
-768.64​
561649
-940.54​
561649
1674.68​
561649
-903.87​
561649
1844.41​
561649
-2027.78​
561649
2027.78​
561649
-1694.26​
562169
-115.10​
562169
124.66​
562169
115.10​
562169
-75.92​
562169
-148.67​
562169
-124.66​
562169
148.67​
562169
75.92​
562169
-58.77​
562301
881.71​
562301
-881.71​
562301
-881.71​
563622
-319.37​
563622
348.75​
563622
-117.52​
563622
319.37​
563622
-105.81​
563622
422.21​
563622
-422.21​
563622
-348.75​
564134
2513.93​
564134
-1848.77​
564134
-1953.08​
564134
-560.84​
564134
-2430.17​
564134
2430.17​
564134
-2385.60​
564134
-1895.60​
564134
2385.60​
564134
1895.60​
564134
1980.51​
564134
-1980.51​
564135
-102.90​
564135
408.39​
564135
-391.24​
564135
-940.59​
564135
-33.74​
564135
-376.55​
564135
391.24​
564135
-359.40​
564135
376.55​
564135
974.34​
564135
-119.49​
564135
359.40​
564135
119.49​
564135
-1406.61​
564135
1406.61​
564135
-408.39​
566715
-551.46​
566715
551.46​
566715
-82.77​
566715
-1117.84​
566715
1117.84​
566715
-574.96​
566715
574.96​
566715
-72.91​
566715
82.77​
569078
822.69​
569078
-771.24​
569078
771.24​
569078
-114.03​
569078
-989.29​
569078
989.29​
569078
-822.69​
572711
-121.25​
578717
-3950.68​
578717
3950.68​
578717
-3925.21​
578717
3925.21​
578717
-3880.55​
578717
-3863.90​
578717
3880.55​
578717
3863.90​
578717
-3752.13​
578999
-682.08​
579001
-8052.43​
579001
-4897.42​
579001
-122.45​
579001
5019.87​
579001
-4897.42​
579001
-5074.56​
579001
8052.43​
579001
5074.56​
579880
-538.46​
579880
-440.48​
579880
538.46​
579880
371.88​
579880
-286.13​
579880
-371.88​
579880
440.48​
579880
286.13​
579880
-265.92​
583184
-453.09​
583184
453.09​
583184
-440.85​
583184
-612.01​
583184
-440.85​
583184
1052.86​
584591
-299.82​
584591
299.82​
584591
-191.45​
584591
163.03​
584591
-152.10​
584591
-4.87​
584591
191.45​
584591
-163.03​
584591
-6.07​
584591
-862.33​
584591
873.27​
584591
-58.67​
584591
152.10​
584591
-132.51​
584591
132.51​
588355
867.24​
588355
-867.24​
588355
-3075.29​
588355
-3066.90​
588355
3075.29​
588355
3066.90​
588355
-325.64​
588355
-308.49​
588355
325.64​
589964
-132.30​
593016
-318.36​
593016
337.95​
593016
-19.59​
593016
-19.59​
593016
-61.23​
593016
61.23​
593016
-41.64​
593016
41.64​
595187
-456.88​
595395
-720.06​
595395
-125.33​
595395
845.40​
595395
-278.75​
595395
733.67​
595395
-628.61​
595395
-808.58​
595395
808.58​
595395
-733.67​
595395
628.61​
598662
-861.15​
598662
2583.89​
598662
-1722.74​
598662
-44.20​
598662
2534.91​
598662
-1430.06​
598662
-2534.91​
598662
1430.06​
598662
-1389.64​
598662
1389.64​
598662
-427.97​
598662
427.97​
599675
-74.38​
599737
-1469.51​
599737
3122.57​
599737
-1440.12​
599737
1469.51​
599737
-3122.57​
599798
-6906.35​
599798
-405.54​
599798
6906.35​
599989
-499.80​
599989
499.80​
599989
-482.65​
599989
-208.25​
599989
482.65​
600227
-6421.37​
600227
-6227.39​
600227
6421.37​
600227
6227.39​
600227
-4431.97​
600545
-2020.19​
600545
4203.31​
600545
-2183.12​
600545
-441.71​
600545
-2104.33​
600545
-1456.35​
600545
2104.33​
600545
1456.35​
601490
-306.10​
601490
2902.75​
601490
-2596.65​
601490
-195.90​
601490
-404.05​
601490
404.05​
601497
1868.15​
601497
-1791.74​
601497
33666.72​
601497
-1786.23​
601497
-31880.49​
601497
-1942.30​
601497
-1868.15​
601497
1942.30​
601621
1623.81​
601621
-1408.83​
601621
-714.42​
601621
2123.25​
601621
-177.41​
601621
-1346.89​
601621
-1623.81​
601621
1346.89​
601621
-1248.94​
601621
-1109.78​
601621
1248.94​
601621
-1095.57​
601621
1109.78​
601621
1095.57​
602985
-1468.38​
602985
-2934.49​
602985
-35525.19​
602985
41919.55​
602985
-1104.85​
602985
-10.20​
602985
41032.92​
602985
-40968.19​
602985
-41919.55​
602985
-40065.37​
602985
40968.19​
602985
-3424.12​
602985
40065.37​
602985
3424.12​
602985
-2607.98​
602985
2618.18​
602985
-1628.47​
602993
-5170.40​
602993
-78.35​
602993
19809.24​
602993
-14638.84​
603071
-573.01​
603071
-898.42​
603071
-2169.13​
603071
-11427.06​
603071
22050.00​
603071
-6492.37​
603071
-490.00​
603071
-21070.00​
603071
-21021.00​
603071
21070.00​
609243
-19327.07​
609243
-7996.41​
609243
27323.48​
609243
-350.30​
609243
-560.48​
609500
-3075.48​
609500
4177.98​
609500
-1102.50​
609500
-593.07​
609500
-2854.60​
609500
-1020.66​
609500
2854.60​
609500
1020.66​
609502
-1329.08​
609502
1329.08​
609502
-966.67​
609502
-819.72​
609502
966.67​
609502
819.72​
609502
-301.24​
609582
-3579.82​
609582
3579.82​
609582
-2765.13​
609582
2765.13​
609582
-935.88​
609582
935.88​
609582
-920.46​
610094
-366.47​
610094
-318.45​
610094
-1019.72​
610094
1338.17​
610094
-117.54​
610094
366.47​
610094
-276.42​
610094
276.42​
610181
-105.78​
610184
-1130.90​
610184
2442.30​
610184
-1311.40​
610184
-540.72​
610184
-1339.80​
610184
1339.80​
614215
-2460.94​
614215
-2153.04​
614215
2460.94​
614215
-281.65​
614215
2153.04​
618742
2196.45​
618742
-2142.87​
618742
-624.84​
618742
2767.71​
618742
-2404.89​
618742
-2196.45​
618742
-2164.92​
618742
2164.92​
618742
-2699.69​
618742
2699.69​
618742
-2655.59​
618742
2655.59​
618742
-2476.30​
618742
2476.30​
619849
-13938.56​
619849
-10684.45​
619849
13938.56​
619849
-7227.01​
619849
10684.45​
622356
-966.07​
622356
966.07​
622356
-707.36​
622356
-675.52​
622356
707.36​
623101
-207.54​
623101
207.54​
623101
2079.12​
623101
-1899.84​
623101
-2079.12​
623101
1899.84​
623101
-1800.66​
623151
-88.15​
623151
165.99​
623151
-156.20​
623151
-9.79​
624299
-20632.45​
624299
20632.45​
624299
-987.05​
625702
-1680.03​
625702
-1190.23​
625702
-1469.31​
625702
-1591.86​
625702
2659.54​
625702
-1229.41​
625702
1229.41​
625702
1680.03​
628892
1527.00​
628892
1218.30​
628892
-1527.00​
628892
-1218.30​
628892
-1086.58​
628892
1086.58​
628892
-902.40​
628892
-99.40​
628892
902.40​
628972
3169.06​
628972
-115.34​
628972
-939.80​
628972
-2113.92​
628972
-595.35​
628972
-609.55​
628972
609.55​
630194
321.19​
630194
-110.25​
630194
266.95​
630194
312.37​
630194
-321.19​
630194
-312.37​
630194
-266.95​
638653
-293.95​
639009
1471.91​
639009
-1471.91​
639009
-1449.38​
639009
-685.22​
639009
1449.38​
639009
-31.84​
639009
685.22​
639783
-700.60​
639786
-420.36​
639926
-786.27​
639926
786.27​
639926
-770.67​
640620
-122.45​
644443
-620.49​
644443
-529.11​
644443
620.49​
644749
-538.02​
644749
538.02​
644749
-269.01​
645001
-685.93​
646816
-553.01​
646816
553.01​
646816
-29.11​
646817
-145.53​
646961
-272.87​
647073
-19.59​
647073
-764.28​
647073
783.87​
647073
-700.60​
647073
-764.28​
647073
764.28​
649107
-265.42​
649126
-48.95​
650083
-52.00​
650083
-19.59​
650083
-96.48​
650086
3916.08​
650086
-3867.13​
650086
-3916.08​
650091
-420.32​
651377
4681.98​
651377
-3917.66​
651377
3917.66​
651377
-2780.34​
651377
2780.34​
651377
-2180.57​
651377
-1474.97​
651377
2180.57​
651377
-4681.98​
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
You still have not answered my questions.
These are very important details I need to know in order to be able to help you, so please answer them!

The data that you posted above, what is the exact range address that they appear in (it should include column and row numbers)?
What is the exact Conditional Formatting formula you are trying to use (after you made edits to my original one)?

If you do that, I should be able to give you step-by-step instructions on exactly what to do.
 
Upvote 0
Also note, there is a minor error to my original formula I was using C2 as a temporary calculation field, and forgot to replace it with the real formula.
It should read:
Excel Formula:
=AND($B2=SUMIF($A$2:$A$11,$A2,$B$2:$B$11),COUNTIFS($A$2:$A2,$A2,$B$2:$B2,SUMIF($A$2:$A$11,$A2,$B$2:$B$11))=1)
 
Upvote 0
Also note, there is a minor error to my original formula I was using C2 as a temporary calculation field, and forgot to replace it with the real formula.
It should read:
Excel Formula:
=AND($B2=SUMIF($A$2:$A$11,$A2,$B$2:$B$11),COUNTIFS($A$2:$A2,$A2,$B$2:$B2,SUMIF($A$2:$A$11,$A2,$B$2:$B$11))=1)
Above code is also not matching exact figure . Below is the given mini sheet data

Need formula.xlsx
AB
1Original InvoiceAmount Paid
2530279280.38
3530279-146.95
4530279146.95
5530279-117.56
6530279-280.38
7532224-281.31
8532224387.09
9532224-387.09
10532376-152.82
11535274-594.85
12535274594.85
13535274-187.42
14546227-298.13
15547390-237.85
16547390237.85
17547390-139.89
18547390-112.65
19547390139.89
20547634-276.86
21547634-225.92
22547634276.86
23547634-200.45
24547634225.92
25547915-533.73
26548216428.18
27548216-428.18
28548216-384.08
29548216-318.37
30548216384.08
31556381-152.82
32558357-156.72
33559299-2750.48
345592992750.48
35559299-2691.39
365592992691.39
37559299-1234.27
38559299-1212.22
395592991234.27
40559518-2250.87
415595182250.87
42559518-2040.87
435595182040.87
44559518-499.89
45559518854.72
46559518-854.72
47559520-17934.30
48559520-794.90
49559520-794.90
5055952013394.22
51559520-9085.76
52559520-3513.56
5355952017934.30
54559520-17728.30
5555952017728.30
5655952013724.97
57559520-13928.81
58559520-13724.97
5955952013928.81
60559737-1128.47
615597371128.47
62559737-1104.46
63559786-2631.15
645597862631.15
65559786-2156.00
665609951042.53
67560995-1042.53
68560995-879.07
69560995879.07
70560995-566.68
71560995566.68
72560995-509.36
73561457-1457.45
745614571590.98
75561457-4233.94
76561457-597.17
77561457-431.19
78561457-366.83
795614574600.78
805614571457.45
81561457-1590.98
82561649-1674.68
835616491694.26
84561649-62.68
85561649-768.64
86561649-940.54
875616491674.68
88561649-903.87
895616491844.41
90561649-2027.78
915616492027.78
92561649-1694.26
93562169-115.10
94562169124.66
95562169115.10
96562169-75.92
97562169-148.67
98562169-124.66
99562169148.67
10056216975.92
101562169-58.77
102562301881.71
103562301-881.71
104562301-881.71
105563622-319.37
106563622348.75
107563622-117.52
108563622319.37
109563622-105.81
110563622422.21
111563622-422.21
112563622-348.75
1135641342513.93
114564134-1848.77
115564134-1953.08
116564134-560.84
117564134-2430.17
1185641342430.17
119564134-2385.60
120564134-1895.60
1215641342385.60
1225641341895.60
1235641341980.51
124564134-1980.51
125564135-102.90
126564135408.39
127564135-391.24
128564135-940.59
129564135-33.74
130564135-376.55
131564135391.24
132564135-359.40
133564135376.55
134564135974.34
135564135-119.49
136564135359.40
137564135119.49
138564135-1406.61
1395641351406.61
140564135-408.39
141566715-551.46
142566715551.46
143566715-82.77
144566715-1117.84
1455667151117.84
146566715-574.96
147566715574.96
148566715-72.91
14956671582.77
150569078822.69
151569078-771.24
152569078771.24
153569078-114.03
154569078-989.29
155569078989.29
156569078-822.69
157572711-121.25
158578717-3950.68
1595787173950.68
160578717-3925.21
1615787173925.21
162578717-3880.55
163578717-3863.90
1645787173880.55
1655787173863.90
166578717-3752.13
167578999-682.08
168579001-8052.43
169579001-4897.42
170579001-122.45
1715790015019.87
172579001-4897.42
173579001-5074.56
1745790018052.43
1755790015074.56
176579880-538.46
177579880-440.48
178579880538.46
179579880371.88
180579880-286.13
181579880-371.88
182579880440.48
183579880286.13
184579880-265.92
185583184-453.09
186583184453.09
187583184-440.85
188583184-612.01
189583184-440.85
1905831841052.86
191584591-299.82
192584591299.82
193584591-191.45
194584591163.03
195584591-152.10
196584591-4.87
197584591191.45
198584591-163.03
199584591-6.07
200584591-862.33
201584591873.27
202584591-58.67
203584591152.10
204584591-132.51
205584591132.51
206588355867.24
207588355-867.24
208588355-3075.29
209588355-3066.90
2105883553075.29
2115883553066.90
212588355-325.64
213588355-308.49
214588355325.64
215589964-132.30
216593016-318.36
217593016337.95
218593016-19.59
219593016-19.59
220593016-61.23
22159301661.23
222593016-41.64
22359301641.64
224595187-456.88
225595395-720.06
226595395-125.33
227595395845.40
228595395-278.75
229595395733.67
230595395-628.61
231595395-808.58
232595395808.58
233595395-733.67
234595395628.61
235598662-861.15
2365986622583.89
237598662-1722.74
238598662-44.20
2395986622534.91
240598662-1430.06
241598662-2534.91
2425986621430.06
243598662-1389.64
2445986621389.64
245598662-427.97
246598662427.97
247599675-74.38
248599737-1469.51
2495997373122.57
250599737-1440.12
2515997371469.51
252599737-3122.57
253599798-6906.35
254599798-405.54
2555997986906.35
256599989-499.80
257599989499.80
258599989-482.65
259599989-208.25
260599989482.65
261600227-6421.37
262600227-6227.39
2636002276421.37
2646002276227.39
265600227-4431.97
266600545-2020.19
2676005454203.31
268600545-2183.12
269600545-441.71
270600545-2104.33
271600545-1456.35
2726005452104.33
2736005451456.35
274601490-306.10
2756014902902.75
276601490-2596.65
277601490-195.90
278601490-404.05
279601490404.05
2806014971868.15
281601497-1791.74
28260149733666.72
283601497-1786.23
284601497-31880.49
285601497-1942.30
286601497-1868.15
2876014971942.30
2886016211623.81
289601621-1408.83
290601621-714.42
2916016212123.25
292601621-177.41
293601621-1346.89
294601621-1623.81
2956016211346.89
296601621-1248.94
297601621-1109.78
2986016211248.94
299601621-1095.57
3006016211109.78
3016016211095.57
302602985-1468.38
303602985-2934.49
304602985-35525.19
30560298541919.55
306602985-1104.85
307602985-10.20
30860298541032.92
309602985-40968.19
310602985-41919.55
311602985-40065.37
31260298540968.19
313602985-3424.12
31460298540065.37
3156029853424.12
316602985-2607.98
3176029852618.18
318602985-1628.47
319602993-5170.40
320602993-78.35
32160299319809.24
322602993-14638.84
323603071-573.01
324603071-898.42
325603071-2169.13
326603071-11427.06
32760307122050.00
328603071-6492.37
329603071-490.00
330603071-21070.00
331603071-21021.00
33260307121070.00
333609243-19327.07
334609243-7996.41
33560924327323.48
336609243-350.30
337609243-560.48
338609500-3075.48
3396095004177.98
340609500-1102.50
341609500-593.07
342609500-2854.60
343609500-1020.66
3446095002854.60
3456095001020.66
346609502-1329.08
3476095021329.08
348609502-966.67
349609502-819.72
350609502966.67
351609502819.72
352609502-301.24
353609582-3579.82
3546095823579.82
355609582-2765.13
3566095822765.13
357609582-935.88
358609582935.88
359609582-920.46
360610094-366.47
361610094-318.45
362610094-1019.72
3636100941338.17
364610094-117.54
365610094366.47
366610094-276.42
367610094276.42
368610181-105.78
369610184-1130.90
3706101842442.30
371610184-1311.40
372610184-540.72
373610184-1339.80
3746101841339.80
375614215-2460.94
376614215-2153.04
3776142152460.94
378614215-281.65
3796142152153.04
3806187422196.45
381618742-2142.87
382618742-624.84
3836187422767.71
384618742-2404.89
385618742-2196.45
386618742-2164.92
3876187422164.92
388618742-2699.69
3896187422699.69
390618742-2655.59
3916187422655.59
392618742-2476.30
3936187422476.30
394619849-13938.56
395619849-10684.45
39661984913938.56
397619849-7227.01
39861984910684.45
399622356-966.07
400622356966.07
401622356-707.36
402622356-675.52
403622356707.36
404623101-207.54
405623101207.54
4066231012079.12
407623101-1899.84
408623101-2079.12
4096231011899.84
410623101-1800.66
411623151-88.15
412623151165.99
413623151-156.20
414623151-9.79
415624299-20632.45
41662429920632.45
417624299-987.05
418625702-1680.03
419625702-1190.23
420625702-1469.31
421625702-1591.86
4226257022659.54
423625702-1229.41
4246257021229.41
4256257021680.03
4266288921527.00
4276288921218.30
428628892-1527.00
429628892-1218.30
430628892-1086.58
4316288921086.58
432628892-902.40
433628892-99.40
434628892902.40
4356289723169.06
436628972-115.34
437628972-939.80
438628972-2113.92
439628972-595.35
440628972-609.55
441628972609.55
442630194321.19
443630194-110.25
444630194266.95
445630194312.37
446630194-321.19
447630194-312.37
448630194-266.95
449638653-293.95
4506390091471.91
451639009-1471.91
452639009-1449.38
453639009-685.22
4546390091449.38
455639009-31.84
456639009685.22
457639783-700.60
458639786-420.36
459639926-786.27
460639926786.27
461639926-770.67
462640620-122.45
463644443-620.49
464644443-529.11
465644443620.49
466644749-538.02
467644749538.02
468644749-269.01
469645001-685.93
470646816-553.01
471646816553.01
472646816-29.11
473646817-145.53
474646961-272.87
475647073-19.59
476647073-764.28
477647073783.87
478647073-700.60
479647073-764.28
480647073764.28
481649107-265.42
482649126-48.95
483650083-52.00
484650083-19.59
485650083-96.48
4866500863916.08
487650086-3867.13
488650086-3916.08
489650091-420.32
4906513774681.98
491651377-3917.66
4926513773917.66
493651377-2780.34
4946513772780.34
495651377-2180.57
496651377-1474.97
4976513772180.57
498651377-4681.98
499651533-208.62
500651533-85.68
501651533264.86
502651533-135.18
503651533-179.18
504651533208.62
505652322-104.66
506652842-132.30
507654647-1028.90
508655625-4235.61
509655625-670.32
5106556254905.93
511655625-3427.76
512655625-4779.16
5136556254779.16
514655625-4551.91
5156556254551.91
516656185-6253.08
5176561856253.08
518656185-6228.59
5196561856228.59
520656185-1584.17
521656390-489.51
5226563901292.31
523656390-802.80
524656390-793.01
525656390-1086.71
5266563901086.71
527656390-802.80
528656390802.80
529658817-731.00
530658817913.75
531658817-913.75
532658829-560.48
533658895-290.94
534658961-290.74
535658961-352.41
536658961352.41
537659201-716.01
538659369-365.09
539659369-262.71
540659369365.09
541659864-1443.99
542659864-1427.45
5436598641443.99
544659918-24548.90
54565991824548.90
546659918-154.35
547659944-127.36
548659944-364.32
549659944491.69
550659944-127.36
551661499-350.30
552661503-497.01
553661503-511.21
554661503-24.01
555661503535.22
556661503-440.21
557661503497.01
558661854-3370.00
5596618543370.00
560661854-2459.19
561661855-2754.68
5626618552754.68
563661855-1042.13
564661855-1028.90
5656618551042.13
566662374-1397.96
567662374-1381.80
5686623741397.96
569662376-370.03
570664795-553.81
571664798-1740.27
5726647981740.27
573664798-1639.47
574664798-78.75
575665123-658.43
576665123658.43
577665123-490.42
578665130-244.90
579665130-44.08
580665130288.98
581665130-171.43
582665176-1870.49
583665176-727.64
5846651761870.49
585665176727.64
586665176-608.23
587665379-1033.80
5886653791033.80
589665379-913.75
590666410-2823.52
591666410-1457.30
5926664104280.82
593666410-2459.19
594667232-857.49
595667232857.49
596667232-97.99
597667232-783.92
598667410-465.84
599667410-110.25
600667410-432.12
601668053-1714.31
602668053-734.71
6036680531714.31
604668147-3212.79
6056681473212.79
606668147-2415.30
607668147-738.72
608668404-404.13
609668404-1065.38
610668483-42.12
611668483-22.53
61266848342.12
613668705-427.10
614668705-84.13
615668705-146.90
616668705511.23
617670000-205.75
618670000205.75
619670000-183.70
620670000-95.50
621670000183.70
622670139-919.95
623670139-753.40
624670139919.95
625670139753.40
626670139-312.40
627671664-1657.09
6286716641657.09
629671664-1505.19
630671664-1049.49
6316716641505.19
632671687-2277.03
6336716872277.03
634671687-910.81
635671871-910.81
636671880-1959.80
637672089-1181.88
6386720891181.88
639672089-679.58
640672089-650.03
641672089679.58
642672091-3684.69
643672091-2771.07
6446720913684.69
645672091-846.01
646672093-696.01
647672093696.01
648672093-687.20
649672098-3121.30
6506720983121.30
651672098-267.69
652672098-1773.16
653672103-465.42
654672103465.42
655672103-218.70
656672438-10.84
657672438-699.17
658672706-1514.09
659672706-24.01
6606727061538.10
661672706-1090.00
662672706-1246.72
6636727061246.72
664672708-1959.63
665672709-2489.74
666672709-2440.79
6676727092489.74
668672709-1872.78
6696727092440.79
670672853-2341.61
671672853-648.45
672673008-366.74
673673069-583.05
674673069-116.61
675673069583.05
676673365-4986.45
6776733654986.45
678673365-4212.82
679673365-4198.62
6806733654212.82
6816733654198.62
682673365-1294.48
683673365-1053.08
6846733651294.48
685673474-2086.78
6866734742086.78
687673474-2047.59
688673474-558.41
6896734742047.59
690673871-136.70
691673871-1093.40
6926738711230.10
693673871-112.22
694673871-1095.45
6956738711095.45
696673871-1046.49
6976738711046.49
698673995-245.20
699674326-1401.20
7006743261401.20
701674326-700.60
702674333-10677.42
70367433310677.42
704674333-10599.05
70567433310599.05
706674333-10158.20
70767433310158.20
708674333-3741.73
709674334-4285.50
7106743344285.50
711674334-4112.15
712674334-4046.00
7136743344112.15
714674334-1836.76
7156743344046.00
716674336-31125.65
717674336-50138.79
718674336-6641.43
71967433687905.87
720674336-7694.33
721674336-87621.81
72267433687621.81
723674336-87592.42
724674336-16647.52
72567433687592.42
72667433616647.52
727674337-8326.51
728674337-685.66
7296743379012.17
730674337-2154.92
731674337-8914.22
7326743378914.22
733674339-23078.04
734674339-23058.45
735674339-3722.43
73667433926780.88
737674339-16671.26
73867433923078.04
739674339-26663.34
74067433926663.34
741674340-17118.09
742674340-15722.03
743674340-514.50
744674340-13194.53
74567434029431.07
746674340-26311.32
74767434017118.09
748674340-29293.93
74967434029293.93
750674340-29269.44
75167434029269.44
752674341-16650.69
753674341-1778.62
754674341-532.80
755674341-2920.82
756674341-19909.02
75767434121882.93
758674560-98.09
75967456098.09
760674560-67.23
761675052-134.64
762675052-97.92
763675052134.64
764675053-1038.16
7656750531038.16
766675053-176.30
767675858-6073.10
768675858-1579.46
7696758587652.56
770675858-3359.46
771675858-7454.23
7726758587454.23
773675858-7441.99
774675858-7368.50
7756758587441.99
7766758587368.50
777675859-5151.68
778675859-2816.29
7796758597967.98
780675859-7467.32
781675859-299.57
7826758597766.89
783675859-2164.16
784675859-7654.82
7856758597654.82
786675860-3257.17
787675860-3080.86
788675860-2578.80
7896758605659.66
790675860-1537.99
7916758603257.17
792675860-5469.06
7936758605469.06
794675860-1557.58
7956758601557.58
796675979-901.15
797676061-14134.11
798676061-2025.63
799676061-934.29
80067606117094.03
801676061-1137.78
802676061-16981.91
803676061-16935.37
80467606116981.91
80567606116935.37
806676061-16910.88
80767606116910.88
808676070-979.51
809676075-225.82
810676075225.82
811676075-193.98
812676162-1025.90
8136761621025.90
814676162-910.81
815676163-2882.16
816676163-2492.62
8176761632882.16
8186761632492.62
819676163-1177.04
820676164-177.75
821676164-97.90
822676164177.75
823676201-1107.62
824676398-1561.14
825676479-46.53
826676479-299.69
827676479346.22
828676479-327.16
829676479-572.07
830676479-276.74
831676479603.91
832676479572.07
833676479-515.26
834676480-2528.39
8356764802528.39
836676480-1906.89
8376764801906.89
838676480-1613.04
8396764801613.04
840676480-1469.51
841676594-2781.35
842676594-19.59
8436765942800.94
844676594-382.07
845676594-2575.65
8466765942575.65
847676717-2045.11
8486767172045.11
849676717-842.53
850676717-78.36
851676717842.53
852676856-39.15
85367685639.15
854676856-7.83
855676979-489.75
856677072-755.56
857677072755.56
858677072-314.85
859677073-860.23
860677073-52.23
861677073912.46
862677073-66.09
863677073-195.98
864677073195.98
865677074-369.48
866677077-475.59
867677077-453.95
868677077475.59
869677077-587.61
8706770771041.55
871677077-703.70
872677097-220.69
873677102-1982.04
874677102-1940.01
8756771021982.04
876677102-455.41
8776771021940.01
878677112-183.65
879677189-2838.46
880677189-22.05
8816771892860.51
882677189-2742.92
883677189-2831.12
8846771892831.12
885677334-326.22
886677500-3065.01
887677500-3035.62
888677500-156.76
8896775003192.38
890677500-48.98
8916775003065.01
892677500-3114.51
8936775003114.51
894677502-2631.80
895677502-2053.55
8966775024685.35
897677502-1205.00
898677502-3886.65
899677502-3820.50
9006775023886.65
9016775023820.50
902677502-3636.79
9036775023636.79
904677502-1375.40
9056775021375.40
906677506-1532.93
907677506-2327.48
908677506-19.59
9096775062347.07
910677506-504.33
9116775061532.93
912677506-1385.97
9136775061385.97
914678084-1508.66
915678084-39.15
9166780841508.66
917678224-25066.49
91867822425066.49
919678224-24512.13
92067822424512.13
921678224-1315.40
922678224-1273.36
9236782241315.40
924678225-2151.29
9256782252151.29
926678225-489.75
927678226-1820.78
9286782261820.78
929678226-587.71
930678361-770.67
931678382-242.55
932678560-2621.84
933678560-134.65
934678560-262.11
935678560-514.05
9366785603532.65
937678560-1049.49
938678560-3378.52
9396785603378.52
940678560-3279.58
9416785603279.58
942678587-51885.93
94367858751885.93
944678587-3145.93
9456785873145.93
946678587-132.01
947679551-848.29
948679551862.46
949679551-14.17
950679551-391.69
951679551-776.78
952679551-746.89
953679551776.78
954679551-734.65
955679551746.89
956679551734.65
957679615-1979.97
9586796151979.97
959679615-1950.58
9606796151950.58
961679615-1815.88
962679615-1742.43
9636796151815.88
964680903-1929.83
9656809031929.83
966680903-1905.34
967680903-636.69
9686809031905.34
969680903636.69
970680903-352.68
971680906-342.86
972680906-293.88
973680906342.86
974680957-146.95
975681281-372.21
976681281-313.44
977681281372.21
978681590-8070.35
9796815908070.35
980681590-7658.79
981681590-6351.59
9826815907658.79
9836815906351.59
984681590-4526.09
985681937-79.64
986681937-31.32
987681937-75.43
988681937-533.87
989681937720.27
990681937-661.50
991682255-1283.03
9926822551283.03
993682255-1220.38
9946822551220.38
995682255-140.94
996685121-764.02
997685303-979.88
998685303-531.65
999685303-2281.11
1000685303-1468.92
10016853031511.53
10026853032281.11
1003685304-6905.60
1004685304-5438.85
10056853046905.60
1006685304-8862.56
1007685304-293.95
1008685304-4575.44
1009685304-168.93
101068530413900.89
1011685304-253.66
1012685304-2944.96
10136853045438.85
10146853042944.96
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:B1727Expression=AND($B2=SUMIF($A$2:$A$1727,$A2,$B$2:$B$1727),COUNTIFS($A$2:$A2,$A2,$B$2:$B2,SUMIF($A$2:$A$1727,$A2,$B$2:$B$1727))=1)textNO
 
Upvote 0
Above code is also not matching exact figure . Below is the given mini sheet data

Need formula.xlsx
AB
1Original InvoiceAmount Paid
2530279280.38
3530279-146.95
4530279146.95
5530279-117.56
6530279-280.38
7532224-281.31
8532224387.09
9532224-387.09
10532376-152.82
11535274-594.85
12535274594.85
13535274-187.42
14546227-298.13
15547390-237.85
16547390237.85
17547390-139.89
18547390-112.65
19547390139.89
20547634-276.86
21547634-225.92
22547634276.86
23547634-200.45
24547634225.92
25547915-533.73
26548216428.18
27548216-428.18
28548216-384.08
29548216-318.37
30548216384.08
31556381-152.82
32558357-156.72
33559299-2750.48
345592992750.48
35559299-2691.39
365592992691.39
37559299-1234.27
38559299-1212.22
395592991234.27
40559518-2250.87
415595182250.87
42559518-2040.87
435595182040.87
44559518-499.89
45559518854.72
46559518-854.72
47559520-17934.30
48559520-794.90
49559520-794.90
5055952013394.22
51559520-9085.76
52559520-3513.56
5355952017934.30
54559520-17728.30
5555952017728.30
5655952013724.97
57559520-13928.81
58559520-13724.97
5955952013928.81
60559737-1128.47
615597371128.47
62559737-1104.46
63559786-2631.15
645597862631.15
65559786-2156.00
665609951042.53
67560995-1042.53
68560995-879.07
69560995879.07
70560995-566.68
71560995566.68
72560995-509.36
73561457-1457.45
745614571590.98
75561457-4233.94
76561457-597.17
77561457-431.19
78561457-366.83
795614574600.78
805614571457.45
81561457-1590.98
82561649-1674.68
835616491694.26
84561649-62.68
85561649-768.64
86561649-940.54
875616491674.68
88561649-903.87
895616491844.41
90561649-2027.78
915616492027.78
92561649-1694.26
93562169-115.10
94562169124.66
95562169115.10
96562169-75.92
97562169-148.67
98562169-124.66
99562169148.67
10056216975.92
101562169-58.77
102562301881.71
103562301-881.71
104562301-881.71
105563622-319.37
106563622348.75
107563622-117.52
108563622319.37
109563622-105.81
110563622422.21
111563622-422.21
112563622-348.75
1135641342513.93
114564134-1848.77
115564134-1953.08
116564134-560.84
117564134-2430.17
1185641342430.17
119564134-2385.60
120564134-1895.60
1215641342385.60
1225641341895.60
1235641341980.51
124564134-1980.51
125564135-102.90
126564135408.39
127564135-391.24
128564135-940.59
129564135-33.74
130564135-376.55
131564135391.24
132564135-359.40
133564135376.55
134564135974.34
135564135-119.49
136564135359.40
137564135119.49
138564135-1406.61
1395641351406.61
140564135-408.39
141566715-551.46
142566715551.46
143566715-82.77
144566715-1117.84
1455667151117.84
146566715-574.96
147566715574.96
148566715-72.91
14956671582.77
150569078822.69
151569078-771.24
152569078771.24
153569078-114.03
154569078-989.29
155569078989.29
156569078-822.69
157572711-121.25
158578717-3950.68
1595787173950.68
160578717-3925.21
1615787173925.21
162578717-3880.55
163578717-3863.90
1645787173880.55
1655787173863.90
166578717-3752.13
167578999-682.08
168579001-8052.43
169579001-4897.42
170579001-122.45
1715790015019.87
172579001-4897.42
173579001-5074.56
1745790018052.43
1755790015074.56
176579880-538.46
177579880-440.48
178579880538.46
179579880371.88
180579880-286.13
181579880-371.88
182579880440.48
183579880286.13
184579880-265.92
185583184-453.09
186583184453.09
187583184-440.85
188583184-612.01
189583184-440.85
1905831841052.86
191584591-299.82
192584591299.82
193584591-191.45
194584591163.03
195584591-152.10
196584591-4.87
197584591191.45
198584591-163.03
199584591-6.07
200584591-862.33
201584591873.27
202584591-58.67
203584591152.10
204584591-132.51
205584591132.51
206588355867.24
207588355-867.24
208588355-3075.29
209588355-3066.90
2105883553075.29
2115883553066.90
212588355-325.64
213588355-308.49
214588355325.64
215589964-132.30
216593016-318.36
217593016337.95
218593016-19.59
219593016-19.59
220593016-61.23
22159301661.23
222593016-41.64
22359301641.64
224595187-456.88
225595395-720.06
226595395-125.33
227595395845.40
228595395-278.75
229595395733.67
230595395-628.61
231595395-808.58
232595395808.58
233595395-733.67
234595395628.61
235598662-861.15
2365986622583.89
237598662-1722.74
238598662-44.20
2395986622534.91
240598662-1430.06
241598662-2534.91
2425986621430.06
243598662-1389.64
2445986621389.64
245598662-427.97
246598662427.97
247599675-74.38
248599737-1469.51
2495997373122.57
250599737-1440.12
2515997371469.51
252599737-3122.57
253599798-6906.35
254599798-405.54
2555997986906.35
256599989-499.80
257599989499.80
258599989-482.65
259599989-208.25
260599989482.65
261600227-6421.37
262600227-6227.39
2636002276421.37
2646002276227.39
265600227-4431.97
266600545-2020.19
2676005454203.31
268600545-2183.12
269600545-441.71
270600545-2104.33
271600545-1456.35
2726005452104.33
2736005451456.35
274601490-306.10
2756014902902.75
276601490-2596.65
277601490-195.90
278601490-404.05
279601490404.05
2806014971868.15
281601497-1791.74
28260149733666.72
283601497-1786.23
284601497-31880.49
285601497-1942.30
286601497-1868.15
2876014971942.30
2886016211623.81
289601621-1408.83
290601621-714.42
2916016212123.25
292601621-177.41
293601621-1346.89
294601621-1623.81
2956016211346.89
296601621-1248.94
297601621-1109.78
2986016211248.94
299601621-1095.57
3006016211109.78
3016016211095.57
302602985-1468.38
303602985-2934.49
304602985-35525.19
30560298541919.55
306602985-1104.85
307602985-10.20
30860298541032.92
309602985-40968.19
310602985-41919.55
311602985-40065.37
31260298540968.19
313602985-3424.12
31460298540065.37
3156029853424.12
316602985-2607.98
3176029852618.18
318602985-1628.47
319602993-5170.40
320602993-78.35
32160299319809.24
322602993-14638.84
323603071-573.01
324603071-898.42
325603071-2169.13
326603071-11427.06
32760307122050.00
328603071-6492.37
329603071-490.00
330603071-21070.00
331603071-21021.00
33260307121070.00
333609243-19327.07
334609243-7996.41
33560924327323.48
336609243-350.30
337609243-560.48
338609500-3075.48
3396095004177.98
340609500-1102.50
341609500-593.07
342609500-2854.60
343609500-1020.66
3446095002854.60
3456095001020.66
346609502-1329.08
3476095021329.08
348609502-966.67
349609502-819.72
350609502966.67
351609502819.72
352609502-301.24
353609582-3579.82
3546095823579.82
355609582-2765.13
3566095822765.13
357609582-935.88
358609582935.88
359609582-920.46
360610094-366.47
361610094-318.45
362610094-1019.72
3636100941338.17
364610094-117.54
365610094366.47
366610094-276.42
367610094276.42
368610181-105.78
369610184-1130.90
3706101842442.30
371610184-1311.40
372610184-540.72
373610184-1339.80
3746101841339.80
375614215-2460.94
376614215-2153.04
3776142152460.94
378614215-281.65
3796142152153.04
3806187422196.45
381618742-2142.87
382618742-624.84
3836187422767.71
384618742-2404.89
385618742-2196.45
386618742-2164.92
3876187422164.92
388618742-2699.69
3896187422699.69
390618742-2655.59
3916187422655.59
392618742-2476.30
3936187422476.30
394619849-13938.56
395619849-10684.45
39661984913938.56
397619849-7227.01
39861984910684.45
399622356-966.07
400622356966.07
401622356-707.36
402622356-675.52
403622356707.36
404623101-207.54
405623101207.54
4066231012079.12
407623101-1899.84
408623101-2079.12
4096231011899.84
410623101-1800.66
411623151-88.15
412623151165.99
413623151-156.20
414623151-9.79
415624299-20632.45
41662429920632.45
417624299-987.05
418625702-1680.03
419625702-1190.23
420625702-1469.31
421625702-1591.86
4226257022659.54
423625702-1229.41
4246257021229.41
4256257021680.03
4266288921527.00
4276288921218.30
428628892-1527.00
429628892-1218.30
430628892-1086.58
4316288921086.58
432628892-902.40
433628892-99.40
434628892902.40
4356289723169.06
436628972-115.34
437628972-939.80
438628972-2113.92
439628972-595.35
440628972-609.55
441628972609.55
442630194321.19
443630194-110.25
444630194266.95
445630194312.37
446630194-321.19
447630194-312.37
448630194-266.95
449638653-293.95
4506390091471.91
451639009-1471.91
452639009-1449.38
453639009-685.22
4546390091449.38
455639009-31.84
456639009685.22
457639783-700.60
458639786-420.36
459639926-786.27
460639926786.27
461639926-770.67
462640620-122.45
463644443-620.49
464644443-529.11
465644443620.49
466644749-538.02
467644749538.02
468644749-269.01
469645001-685.93
470646816-553.01
471646816553.01
472646816-29.11
473646817-145.53
474646961-272.87
475647073-19.59
476647073-764.28
477647073783.87
478647073-700.60
479647073-764.28
480647073764.28
481649107-265.42
482649126-48.95
483650083-52.00
484650083-19.59
485650083-96.48
4866500863916.08
487650086-3867.13
488650086-3916.08
489650091-420.32
4906513774681.98
491651377-3917.66
4926513773917.66
493651377-2780.34
4946513772780.34
495651377-2180.57
496651377-1474.97
4976513772180.57
498651377-4681.98
499651533-208.62
500651533-85.68
501651533264.86
502651533-135.18
503651533-179.18
504651533208.62
505652322-104.66
506652842-132.30
507654647-1028.90
508655625-4235.61
509655625-670.32
5106556254905.93
511655625-3427.76
512655625-4779.16
5136556254779.16
514655625-4551.91
5156556254551.91
516656185-6253.08
5176561856253.08
518656185-6228.59
5196561856228.59
520656185-1584.17
521656390-489.51
5226563901292.31
523656390-802.80
524656390-793.01
525656390-1086.71
5266563901086.71
527656390-802.80
528656390802.80
529658817-731.00
530658817913.75
531658817-913.75
532658829-560.48
533658895-290.94
534658961-290.74
535658961-352.41
536658961352.41
537659201-716.01
538659369-365.09
539659369-262.71
540659369365.09
541659864-1443.99
542659864-1427.45
5436598641443.99
544659918-24548.90
54565991824548.90
546659918-154.35
547659944-127.36
548659944-364.32
549659944491.69
550659944-127.36
551661499-350.30
552661503-497.01
553661503-511.21
554661503-24.01
555661503535.22
556661503-440.21
557661503497.01
558661854-3370.00
5596618543370.00
560661854-2459.19
561661855-2754.68
5626618552754.68
563661855-1042.13
564661855-1028.90
5656618551042.13
566662374-1397.96
567662374-1381.80
5686623741397.96
569662376-370.03
570664795-553.81
571664798-1740.27
5726647981740.27
573664798-1639.47
574664798-78.75
575665123-658.43
576665123658.43
577665123-490.42
578665130-244.90
579665130-44.08
580665130288.98
581665130-171.43
582665176-1870.49
583665176-727.64
5846651761870.49
585665176727.64
586665176-608.23
587665379-1033.80
5886653791033.80
589665379-913.75
590666410-2823.52
591666410-1457.30
5926664104280.82
593666410-2459.19
594667232-857.49
595667232857.49
596667232-97.99
597667232-783.92
598667410-465.84
599667410-110.25
600667410-432.12
601668053-1714.31
602668053-734.71
6036680531714.31
604668147-3212.79
6056681473212.79
606668147-2415.30
607668147-738.72
608668404-404.13
609668404-1065.38
610668483-42.12
611668483-22.53
61266848342.12
613668705-427.10
614668705-84.13
615668705-146.90
616668705511.23
617670000-205.75
618670000205.75
619670000-183.70
620670000-95.50
621670000183.70
622670139-919.95
623670139-753.40
624670139919.95
625670139753.40
626670139-312.40
627671664-1657.09
6286716641657.09
629671664-1505.19
630671664-1049.49
6316716641505.19
632671687-2277.03
6336716872277.03
634671687-910.81
635671871-910.81
636671880-1959.80
637672089-1181.88
6386720891181.88
639672089-679.58
640672089-650.03
641672089679.58
642672091-3684.69
643672091-2771.07
6446720913684.69
645672091-846.01
646672093-696.01
647672093696.01
648672093-687.20
649672098-3121.30
6506720983121.30
651672098-267.69
652672098-1773.16
653672103-465.42
654672103465.42
655672103-218.70
656672438-10.84
657672438-699.17
658672706-1514.09
659672706-24.01
6606727061538.10
661672706-1090.00
662672706-1246.72
6636727061246.72
664672708-1959.63
665672709-2489.74
666672709-2440.79
6676727092489.74
668672709-1872.78
6696727092440.79
670672853-2341.61
671672853-648.45
672673008-366.74
673673069-583.05
674673069-116.61
675673069583.05
676673365-4986.45
6776733654986.45
678673365-4212.82
679673365-4198.62
6806733654212.82
6816733654198.62
682673365-1294.48
683673365-1053.08
6846733651294.48
685673474-2086.78
6866734742086.78
687673474-2047.59
688673474-558.41
6896734742047.59
690673871-136.70
691673871-1093.40
6926738711230.10
693673871-112.22
694673871-1095.45
6956738711095.45
696673871-1046.49
6976738711046.49
698673995-245.20
699674326-1401.20
7006743261401.20
701674326-700.60
702674333-10677.42
70367433310677.42
704674333-10599.05
70567433310599.05
706674333-10158.20
70767433310158.20
708674333-3741.73
709674334-4285.50
7106743344285.50
711674334-4112.15
712674334-4046.00
7136743344112.15
714674334-1836.76
7156743344046.00
716674336-31125.65
717674336-50138.79
718674336-6641.43
71967433687905.87
720674336-7694.33
721674336-87621.81
72267433687621.81
723674336-87592.42
724674336-16647.52
72567433687592.42
72667433616647.52
727674337-8326.51
728674337-685.66
7296743379012.17
730674337-2154.92
731674337-8914.22
7326743378914.22
733674339-23078.04
734674339-23058.45
735674339-3722.43
73667433926780.88
737674339-16671.26
73867433923078.04
739674339-26663.34
74067433926663.34
741674340-17118.09
742674340-15722.03
743674340-514.50
744674340-13194.53
74567434029431.07
746674340-26311.32
74767434017118.09
748674340-29293.93
74967434029293.93
750674340-29269.44
75167434029269.44
752674341-16650.69
753674341-1778.62
754674341-532.80
755674341-2920.82
756674341-19909.02
75767434121882.93
758674560-98.09
75967456098.09
760674560-67.23
761675052-134.64
762675052-97.92
763675052134.64
764675053-1038.16
7656750531038.16
766675053-176.30
767675858-6073.10
768675858-1579.46
7696758587652.56
770675858-3359.46
771675858-7454.23
7726758587454.23
773675858-7441.99
774675858-7368.50
7756758587441.99
7766758587368.50
777675859-5151.68
778675859-2816.29
7796758597967.98
780675859-7467.32
781675859-299.57
7826758597766.89
783675859-2164.16
784675859-7654.82
7856758597654.82
786675860-3257.17
787675860-3080.86
788675860-2578.80
7896758605659.66
790675860-1537.99
7916758603257.17
792675860-5469.06
7936758605469.06
794675860-1557.58
7956758601557.58
796675979-901.15
797676061-14134.11
798676061-2025.63
799676061-934.29
80067606117094.03
801676061-1137.78
802676061-16981.91
803676061-16935.37
80467606116981.91
80567606116935.37
806676061-16910.88
80767606116910.88
808676070-979.51
809676075-225.82
810676075225.82
811676075-193.98
812676162-1025.90
8136761621025.90
814676162-910.81
815676163-2882.16
816676163-2492.62
8176761632882.16
8186761632492.62
819676163-1177.04
820676164-177.75
821676164-97.90
822676164177.75
823676201-1107.62
824676398-1561.14
825676479-46.53
826676479-299.69
827676479346.22
828676479-327.16
829676479-572.07
830676479-276.74
831676479603.91
832676479572.07
833676479-515.26
834676480-2528.39
8356764802528.39
836676480-1906.89
8376764801906.89
838676480-1613.04
8396764801613.04
840676480-1469.51
841676594-2781.35
842676594-19.59
8436765942800.94
844676594-382.07
845676594-2575.65
8466765942575.65
847676717-2045.11
8486767172045.11
849676717-842.53
850676717-78.36
851676717842.53
852676856-39.15
85367685639.15
854676856-7.83
855676979-489.75
856677072-755.56
857677072755.56
858677072-314.85
859677073-860.23
860677073-52.23
861677073912.46
862677073-66.09
863677073-195.98
864677073195.98
865677074-369.48
866677077-475.59
867677077-453.95
868677077475.59
869677077-587.61
8706770771041.55
871677077-703.70
872677097-220.69
873677102-1982.04
874677102-1940.01
8756771021982.04
876677102-455.41
8776771021940.01
878677112-183.65
879677189-2838.46
880677189-22.05
8816771892860.51
882677189-2742.92
883677189-2831.12
8846771892831.12
885677334-326.22
886677500-3065.01
887677500-3035.62
888677500-156.76
8896775003192.38
890677500-48.98
8916775003065.01
892677500-3114.51
8936775003114.51
894677502-2631.80
895677502-2053.55
8966775024685.35
897677502-1205.00
898677502-3886.65
899677502-3820.50
9006775023886.65
9016775023820.50
902677502-3636.79
9036775023636.79
904677502-1375.40
9056775021375.40
906677506-1532.93
907677506-2327.48
908677506-19.59
9096775062347.07
910677506-504.33
9116775061532.93
912677506-1385.97
9136775061385.97
914678084-1508.66
915678084-39.15
9166780841508.66
917678224-25066.49
91867822425066.49
919678224-24512.13
92067822424512.13
921678224-1315.40
922678224-1273.36
9236782241315.40
924678225-2151.29
9256782252151.29
926678225-489.75
927678226-1820.78
9286782261820.78
929678226-587.71
930678361-770.67
931678382-242.55
932678560-2621.84
933678560-134.65
934678560-262.11
935678560-514.05
9366785603532.65
937678560-1049.49
938678560-3378.52
9396785603378.52
940678560-3279.58
9416785603279.58
942678587-51885.93
94367858751885.93
944678587-3145.93
9456785873145.93
946678587-132.01
947679551-848.29
948679551862.46
949679551-14.17
950679551-391.69
951679551-776.78
952679551-746.89
953679551776.78
954679551-734.65
955679551746.89
956679551734.65
957679615-1979.97
9586796151979.97
959679615-1950.58
9606796151950.58
961679615-1815.88
962679615-1742.43
9636796151815.88
964680903-1929.83
9656809031929.83
966680903-1905.34
967680903-636.69
9686809031905.34
969680903636.69
970680903-352.68
971680906-342.86
972680906-293.88
973680906342.86
974680957-146.95
975681281-372.21
976681281-313.44
977681281372.21
978681590-8070.35
9796815908070.35
980681590-7658.79
981681590-6351.59
9826815907658.79
9836815906351.59
984681590-4526.09
985681937-79.64
986681937-31.32
987681937-75.43
988681937-533.87
989681937720.27
990681937-661.50
991682255-1283.03
9926822551283.03
993682255-1220.38
9946822551220.38
995682255-140.94
996685121-764.02
997685303-979.88
998685303-531.65
999685303-2281.11
1000685303-1468.92
10016853031511.53
10026853032281.11
1003685304-6905.60
1004685304-5438.85
10056853046905.60
1006685304-8862.56
1007685304-293.95
1008685304-4575.44
1009685304-168.93
101068530413900.89
1011685304-253.66
1012685304-2944.96
10136853045438.85
10146853042944.96
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:B1727Expression=AND($B2=SUMIF($A$2:$A$1727,$A2,$B$2:$B$1727),COUNTIFS($A$2:$A2,$A2,$B$2:$B2,SUMIF($A$2:$A$1727,$A2,$B$2:$B$1727))=1)textNO
I had just copied your formulae and changed the data range in the formulae from 11 to 1727 rows as I have 1727 line items. And put the formulae in conditional formatting.
Simply just want all the figures which turns to zero after setting off in calculation by a particularly dedicated on the basis of invoice ID's . Digit making zero should be highlighted or vice versa.
 
Last edited:
Upvote 0
Things appear to be working (I see highlighted values).
Can you identify a specific Invoice Number from the data you posted that is not working properly?
 
Upvote 0
Things appear to be working (I see highlighted values).
Can you identify a specific Invoice Number from the data you posted that is not working properly?
There is a problem. Just total the column B all highlighted & Non highlighted one. Then total the highlighted one, both the figures are different. Non highlighted one should be zero because it plus minus doing in each other altogether.
 
Upvote 0
There is a problem. Just total the column B all highlighted & Non highlighted one. Then total the highlighted one, both the figures are different. Non highlighted one should be zero because it plus minus doing in each other altogether.

Let's look at the first one:

1657306012405.png


There are 5 values for that Invoice Number.
The sum of those 5 values in the Amount Paid column is -117.56.
The value in cell B5 is exactly equal to this amount, so it is being identified as the outlier and is highlighted.

So that appears to be working.
Can you point out to me a specific example (please give me an Invoice Number from your posting) that is not working correctly?

Please do not expect me to hunt through all your data to find one that does not work.
You obviously have identified one, so please provide it to me if you want my help.
 
Upvote 0
Let's look at the first one:

View attachment 68918

There are 5 values for that Invoice Number.
The sum of those 5 values in the Amount Paid column is -117.56.
The value in cell B5 is exactly equal to this amount, so it is being identified as the outlier and is highlighted.

So that appears to be working.
Can you point out to me a specific example (please give me an Invoice Number from your posting) that is not working correctly?

Please do not expect me to hunt through all your data to find one that does not work.
You obviously have identified one, so please provide it to me if you want my help.
I completely understand it. But highlighted ones total are not matching with net total .
Some invoices has not been highlighted as you have asked for example invoice no-559520, invoice no-561457 .
 
Upvote 0
OK, there appear to be a few things going on here. The first one, I think is due to the famous Excel "floating arithmetic error". It has to do with how Excel stores numbers, and sometimes there is a tiny amount (a number like 7.34 might really be stored as 7.34000000001) and that can wreak havoc with computations, especially when trying to verify if two things are equal (see: Floating-point arithmetic may give inaccurate result in Excel - Office).

One way around that issue is to use the ROUND function in calculations, to cut it off at two decimals.
So if we update the formula like this:
Excel Formula:
=AND(ROUND($B2,2)=ROUND(SUMIF($A$2:$A$1727,$A2,$B$2:$B$1727),2),COUNTIFS($A$2:$A2,$A2,$B$2:$B2,ROUND(SUMIF($A$2:$A$1727,$A2,$B$2:$B$1727),2))=1)

I think that is what is going on with the 559520 Invoice, as after I made that update, that one seemed to work like it was supposed to:
1657308870460.png


However, regarding the 561457 invoice, if you total all the numbers for that invoice, it totals -1028.35. And if you look at all the entries for that invoice, you will see that none of them equal that amount. I mentioned a few times that my solution will only work for a single outlier (if there was a value exactly equal to the sum), and will NOT work for a combination of records adding up to that difference.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top